From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753577AbZELVFq (ORCPT ); Tue, 12 May 2009 17:05:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752913AbZELVFg (ORCPT ); Tue, 12 May 2009 17:05:36 -0400 Received: from www.tglx.de ([62.245.132.106]:38066 "EHLO www.tglx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752724AbZELVFf (ORCPT ); Tue, 12 May 2009 17:05:35 -0400 Date: Tue, 12 May 2009 23:04:04 +0200 (CEST) From: Thomas Gleixner To: Jaswinder Singh Rajput cc: Ingo Molnar , "H. Peter Anvin" , Robert Richter , Dave Jones , LKML , x86 maintainers Subject: Re: [PATCH 3/10 -tip] x86: Add cpufeatures for Advanced Power Management In-Reply-To: <1242155190.2492.73.camel@ht.satnam> Message-ID: References: <1242142530.2547.11.camel@ht.satnam> <1242142623.2547.13.camel@ht.satnam> <1242142692.2547.15.camel@ht.satnam> <1242142753.2547.16.camel@ht.satnam> <1242155190.2492.73.camel@ht.satnam> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jaswinder, On Wed, 13 May 2009, Jaswinder Singh Rajput wrote: > + /* Advanced Power Management (Function 8000_0007h), edx */ > + if (c->extended_cpuid_level >= 0x80000007) { > + c->x86_capability[9] = cpuid_edx(0x80000007); In the reply to [Patch 5/10] Ingo wrote: >> Also, open-coding x86_capability[9] like that is quite unclean. Were >> we ever to reorder those bits internally, this could would break. Do you really believe that open-coding x86_capability[9] in .../common.c is better than the open-coding in ../powernow-k8.c ? Again, open-coding is wrong and error prone. Ingo explicitely asked for a helper function. All you did is moving the open-coded hard wired array reference to a different place. Please start to listen to the review comments as long as people are willing to look at your patches. Seriously, the noise/useful ratio of your patches is annoying and adds an unjustified burden to the maintainers of that code. Thanks, tglx