diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-02-17 11:20:11 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-17 11:20:11 -0500 |
commit | 0b6de0092244c98b5ba1abda34c92470a20e0d0c (patch) | |
tree | 478e4e18c33fd9fa517559e1ce951fe378d5965f /arch/x86/kernel/cpu/common.c | |
parent | 37a25424252b6cff4dd4b1937ab6a1dbfcadabcc (diff) | |
parent | f62bae5009c1ba596cd475cafbc83e0570a36e26 (diff) |
Merge branch 'x86/apic' into perfcounters/core
Conflicts:
arch/x86/kernel/cpu/perfctr-watchdog.c
Diffstat (limited to 'arch/x86/kernel/cpu/common.c')
-rw-r--r-- | arch/x86/kernel/cpu/common.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index 3a9d45a14ad9..b66af09a6c7d 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c | |||
@@ -24,11 +24,9 @@ | |||
24 | #include <asm/smp.h> | 24 | #include <asm/smp.h> |
25 | #include <asm/cpu.h> | 25 | #include <asm/cpu.h> |
26 | #include <asm/cpumask.h> | 26 | #include <asm/cpumask.h> |
27 | #ifdef CONFIG_X86_LOCAL_APIC | ||
28 | #include <asm/mpspec.h> | ||
29 | #include <asm/apic.h> | 27 | #include <asm/apic.h> |
30 | #include <asm/genapic.h> | 28 | |
31 | #include <asm/genapic.h> | 29 | #ifdef CONFIG_X86_LOCAL_APIC |
32 | #include <asm/uv/uv.h> | 30 | #include <asm/uv/uv.h> |
33 | #endif | 31 | #endif |
34 | 32 | ||
@@ -255,9 +253,9 @@ static void __cpuinit filter_cpuid_features(struct cpuinfo_x86 *c, bool warn) | |||
255 | * signs here... | 253 | * signs here... |
256 | */ | 254 | */ |
257 | if (cpu_has(c, df->feature) && | 255 | if (cpu_has(c, df->feature) && |
258 | ((s32)df->feature < 0 ? | 256 | ((s32)df->level < 0 ? |
259 | (u32)df->feature > (u32)c->extended_cpuid_level : | 257 | (u32)df->level > (u32)c->extended_cpuid_level : |
260 | (s32)df->feature > (s32)c->cpuid_level)) { | 258 | (s32)df->level > (s32)c->cpuid_level)) { |
261 | clear_cpu_cap(c, df->feature); | 259 | clear_cpu_cap(c, df->feature); |
262 | if (warn) | 260 | if (warn) |
263 | printk(KERN_WARNING | 261 | printk(KERN_WARNING |
@@ -267,7 +265,7 @@ static void __cpuinit filter_cpuid_features(struct cpuinfo_x86 *c, bool warn) | |||
267 | df->level); | 265 | df->level); |
268 | } | 266 | } |
269 | } | 267 | } |
270 | } | 268 | } |
271 | 269 | ||
272 | /* | 270 | /* |
273 | * Naming convention should be: <Name> [(<Codename>)] | 271 | * Naming convention should be: <Name> [(<Codename>)] |
@@ -1053,7 +1051,7 @@ void __cpuinit cpu_init(void) | |||
1053 | barrier(); | 1051 | barrier(); |
1054 | 1052 | ||
1055 | check_efer(); | 1053 | check_efer(); |
1056 | if (cpu != 0 && x2apic) | 1054 | if (cpu != 0) |
1057 | enable_x2apic(); | 1055 | enable_x2apic(); |
1058 | 1056 | ||
1059 | /* | 1057 | /* |