diff options
Diffstat (limited to 'arch/x86/kernel/cpu/common.c')
-rw-r--r-- | arch/x86/kernel/cpu/common.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index a8b9b7242428..e8045c4ef1c1 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c | |||
@@ -473,9 +473,6 @@ static void __cpuinit get_cpu_cap(struct cpuinfo_x86 *c) | |||
473 | c->x86_capability[2] = cpuid_edx(0x80860001); | 473 | c->x86_capability[2] = cpuid_edx(0x80860001); |
474 | } | 474 | } |
475 | 475 | ||
476 | if (c->extended_cpuid_level >= 0x80000007) | ||
477 | c->x86_power = cpuid_edx(0x80000007); | ||
478 | |||
479 | if (c->extended_cpuid_level >= 0x80000008) { | 476 | if (c->extended_cpuid_level >= 0x80000008) { |
480 | u32 eax = cpuid_eax(0x80000008); | 477 | u32 eax = cpuid_eax(0x80000008); |
481 | 478 | ||
@@ -483,6 +480,10 @@ static void __cpuinit get_cpu_cap(struct cpuinfo_x86 *c) | |||
483 | c->x86_phys_bits = eax & 0xff; | 480 | c->x86_phys_bits = eax & 0xff; |
484 | } | 481 | } |
485 | #endif | 482 | #endif |
483 | |||
484 | if (c->extended_cpuid_level >= 0x80000007) | ||
485 | c->x86_power = cpuid_edx(0x80000007); | ||
486 | |||
486 | } | 487 | } |
487 | /* | 488 | /* |
488 | * Do minimum CPU detection early. | 489 | * Do minimum CPU detection early. |