lkml.org 
[lkml]   [2009]   [May]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/10 -tip] x86: Add cpufeatures for Advanced Power Management
Jaswinder Singh Rajput wrote:
>
> I think better I will show with the coding to get the clear picture.
>
> Currently we are using hardcoded x86_capability as [0], [2], [4], [5].
>
> Thomas prefer to use constant so may be we can define current system as:
>
> enum {
> CPUID_0000_0001_EDX = 0, /* 0x00000001 edx */
> CPUID_8000_0001_EDX, /* 0x80000001 edx */
> CPUID_8086_0001_EDX, /* 0x80860001 edx */
> CPUID_SOFT_MISC1, /* Software Misc1 */
> CPUID_0000_0001_ECX, /* 0x00000001 ecx */
> CPUID_C000_0001_EDX, /* 0xC0000001 edx */
> CPUID_8000_0001_ECX, /* 0x80000001 ecx */
> CPUID_SOFT_MISC2, /* Software Misc2 */
> CPUID_SOFT_VIRTUAL, /* Software Virtualization */
> };
>

This really seems clumsy to me. We don't refer to the individual words
all that often; and more importantly, I think it'd be hard to get rid of
all the places where the words are referenced.

I do NOT want to renumber them; therein lie madness.

-hpa


\
 
 \ /
  Last update: 2009-05-20 20:55    [W:0.322 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site