diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-02-26 02:54:01 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:40:50 -0400 |
commit | 9716951efd98ada69c417adddc85d9bbe1d7835a (patch) | |
tree | c80a774b3b3cfafadf644ec177f564c7c38d71be /arch/x86/kernel/setup_64.c | |
parent | 0f8d2b926d15a68eac9c19edfdcb58a5d80b2960 (diff) |
x86: clean up cpu capabilities accesses, generic
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/setup_64.c')
-rw-r--r-- | arch/x86/kernel/setup_64.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kernel/setup_64.c b/arch/x86/kernel/setup_64.c index 164200257b68..d65b73e63384 100644 --- a/arch/x86/kernel/setup_64.c +++ b/arch/x86/kernel/setup_64.c | |||
@@ -687,7 +687,7 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c) | |||
687 | 687 | ||
688 | /* Bit 31 in normal CPUID used for nonstandard 3DNow ID; | 688 | /* Bit 31 in normal CPUID used for nonstandard 3DNow ID; |
689 | 3DNow is IDd by bit 31 in extended CPUID (1*32+31) anyway */ | 689 | 3DNow is IDd by bit 31 in extended CPUID (1*32+31) anyway */ |
690 | clear_bit(0*32+31, (unsigned long *)&c->x86_capability); | 690 | clear_cpu_cap(c, 0*32+31); |
691 | 691 | ||
692 | /* On C+ stepping K8 rep microcode works well for copy/memset */ | 692 | /* On C+ stepping K8 rep microcode works well for copy/memset */ |
693 | level = cpuid_eax(1); | 693 | level = cpuid_eax(1); |
@@ -823,7 +823,7 @@ static void __cpuinit early_init_intel(struct cpuinfo_x86 *c) | |||
823 | { | 823 | { |
824 | if ((c->x86 == 0xf && c->x86_model >= 0x03) || | 824 | if ((c->x86 == 0xf && c->x86_model >= 0x03) || |
825 | (c->x86 == 0x6 && c->x86_model >= 0x0e)) | 825 | (c->x86 == 0x6 && c->x86_model >= 0x0e)) |
826 | set_bit(X86_FEATURE_CONSTANT_TSC, &c->x86_capability); | 826 | set_cpu_cap(c, X86_FEATURE_CONSTANT_TSC); |
827 | } | 827 | } |
828 | 828 | ||
829 | static void __cpuinit init_intel(struct cpuinfo_x86 *c) | 829 | static void __cpuinit init_intel(struct cpuinfo_x86 *c) |
@@ -929,7 +929,7 @@ static void __cpuinit early_identify_cpu(struct cpuinfo_x86 *c) | |||
929 | c->x86 += (tfms >> 20) & 0xff; | 929 | c->x86 += (tfms >> 20) & 0xff; |
930 | if (c->x86 >= 0x6) | 930 | if (c->x86 >= 0x6) |
931 | c->x86_model += ((tfms >> 16) & 0xF) << 4; | 931 | c->x86_model += ((tfms >> 16) & 0xF) << 4; |
932 | if (c->x86_capability[0] & (1<<19)) | 932 | if (test_cpu_cap(c, X86_FEATURE_CLFLSH)) |
933 | c->x86_clflush_size = ((misc >> 8) & 0xff) * 8; | 933 | c->x86_clflush_size = ((misc >> 8) & 0xff) * 8; |
934 | } else { | 934 | } else { |
935 | /* Have CPUID level 0 only - unheard of */ | 935 | /* Have CPUID level 0 only - unheard of */ |