Skip to content

Commit

Permalink
x86: move MWAIT idle check to generic CPU initialization on 32-bit
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andi Kleen authored and Ingo Molnar committed Jan 30, 2008
1 parent f6e8e28 commit 30d432d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions arch/x86/kernel/cpu/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion arch/x86/kernel/cpu/intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 30d432d

Please sign in to comment.