diff options
| -rw-r--r-- | arch/x86/kernel/cpu/common.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index 21f086b4c1a8..32093d08d872 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c | |||
| @@ -241,9 +241,9 @@ static void __cpuinit filter_cpuid_features(struct cpuinfo_x86 *c, bool warn) | |||
| 241 | * signs here... | 241 | * signs here... |
| 242 | */ | 242 | */ |
| 243 | if (cpu_has(c, df->feature) && | 243 | if (cpu_has(c, df->feature) && |
| 244 | ((s32)df->feature < 0 ? | 244 | ((s32)df->level < 0 ? |
| 245 | (u32)df->feature > (u32)c->extended_cpuid_level : | 245 | (u32)df->level > (u32)c->extended_cpuid_level : |
| 246 | (s32)df->feature > (s32)c->cpuid_level)) { | 246 | (s32)df->level > (s32)c->cpuid_level)) { |
| 247 | clear_cpu_cap(c, df->feature); | 247 | clear_cpu_cap(c, df->feature); |
| 248 | if (warn) | 248 | if (warn) |
| 249 | printk(KERN_WARNING | 249 | printk(KERN_WARNING |
| @@ -253,7 +253,7 @@ static void __cpuinit filter_cpuid_features(struct cpuinfo_x86 *c, bool warn) | |||
| 253 | df->level); | 253 | df->level); |
| 254 | } | 254 | } |
| 255 | } | 255 | } |
| 256 | } | 256 | } |
| 257 | 257 | ||
| 258 | /* | 258 | /* |
| 259 | * Naming convention should be: <Name> [(<Codename>)] | 259 | * Naming convention should be: <Name> [(<Codename>)] |
