From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752701AbZEQMSl (ORCPT ); Sun, 17 May 2009 08:18:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751956AbZEQMSb (ORCPT ); Sun, 17 May 2009 08:18:31 -0400 Received: from www.tglx.de ([62.245.132.106]:49411 "EHLO www.tglx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751911AbZEQMSa (ORCPT ); Sun, 17 May 2009 08:18:30 -0400 Date: Sun, 17 May 2009 14:17:00 +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: <1242395277.3082.24.camel@localhost.localdomain> 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> <1242395277.3082.24.camel@localhost.localdomain> 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 On Fri, 15 May 2009, Jaswinder Singh Rajput wrote: > > Do you really believe that open-coding x86_capability[9] in .../common.c > > is better than the open-coding in ../powernow-k8.c ? > > > > BTW, then how you can set x86_capability[9] in one shot ? do you want me > to set each bit with set_cpu_cap() ? Using "9" as an array index is the point. This needs to be a constant near the other constants which describe the bits and a big fat comment. Thanks, tglx