mirror of
https://github.com/adulau/aha.git
synced 2025-01-03 22:53:18 +00:00
x86: move MWAIT idle check to generic CPU initialization on 32-bit
Previously it was only run for Intel CPUs, but AMD Fam10h implements MWAIT too. This matches 64bit behaviour. Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
f6e8e28410
commit
30d432dfab
2 changed files with 2 additions and 1 deletions
|
@ -499,6 +499,8 @@ void __cpuinit identify_cpu(struct cpuinfo_x86 *c)
|
||||||
|
|
||||||
/* Init Machine Check Exception if available. */
|
/* Init Machine Check Exception if available. */
|
||||||
mcheck_init(c);
|
mcheck_init(c);
|
||||||
|
|
||||||
|
select_idle_routine(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
void __init identify_boot_cpu(void)
|
void __init identify_boot_cpu(void)
|
||||||
|
|
|
@ -137,7 +137,6 @@ static void __cpuinit init_intel(struct cpuinfo_x86 *c)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
select_idle_routine(c);
|
|
||||||
l2 = init_intel_cacheinfo(c);
|
l2 = init_intel_cacheinfo(c);
|
||||||
if (c->cpuid_level > 9 ) {
|
if (c->cpuid_level > 9 ) {
|
||||||
unsigned eax = cpuid_eax(10);
|
unsigned eax = cpuid_eax(10);
|
||||||
|
|
Loading…
Reference in a new issue