]> err.no Git - linux-2.6/commitdiff
x86: move MWAIT idle check to generic CPU initialization on 32-bit
authorAndi Kleen <ak@suse.de>
Wed, 30 Jan 2008 12:33:16 +0000 (13:33 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:33:16 +0000 (13:33 +0100)
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>
arch/x86/kernel/cpu/common.c
arch/x86/kernel/cpu/intel.c

index ed05c7a0ca9b62a5d54c2f4aa121c1b98ca981b3..4bd326d0322c7de7f013a3a5bea4c295c32ea132 100644 (file)
@@ -499,6 +499,8 @@ void __cpuinit identify_cpu(struct cpuinfo_x86 *c)
 
        /* Init Machine Check Exception if available. */
        mcheck_init(c);
+
+       select_idle_routine(c);
 }
 
 void __init identify_boot_cpu(void)
index f1136115279a9311b58e4ae56f93f0b4a091218e..d1c372b018dbe299fde8ae3c5bcfc21961929e84 100644 (file)
@@ -137,7 +137,6 @@ static void __cpuinit init_intel(struct cpuinfo_x86 *c)
        }
 #endif
 
-       select_idle_routine(c);
        l2 = init_intel_cacheinfo(c);
        if (c->cpuid_level > 9 ) {
                unsigned eax = cpuid_eax(10);