From: Hiroshi Shimamoto Date: Wed, 30 Jan 2008 12:33:18 +0000 (+0100) Subject: x86: move select_idle_routine() call after detect_ht() X-Git-Tag: v2.6.25-rc1~1143^2~247 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=74ff305b05b0974b30022a48145075e6d9a7fb2b;p=linux-2.6-omap-h63xx.git x86: move select_idle_routine() call after detect_ht() Move the select_idle_routine() call to after the detect_ht() call at identify_cpu() on 64-bit. This change is for printing the polling idle and HT enabled warning message properly. Signed-off-by: Hiroshi Shimamoto Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/arch/x86/kernel/setup_64.c b/arch/x86/kernel/setup_64.c index 08e85b79e70..7edb43f0b27 100644 --- a/arch/x86/kernel/setup_64.c +++ b/arch/x86/kernel/setup_64.c @@ -999,7 +999,6 @@ void __cpuinit identify_cpu(struct cpuinfo_x86 *c) break; } - select_idle_routine(c); detect_ht(c); /* @@ -1017,6 +1016,8 @@ void __cpuinit identify_cpu(struct cpuinfo_x86 *c) #ifdef CONFIG_X86_MCE mcheck_init(c); #endif + select_idle_routine(c); + if (c != &boot_cpu_data) mtrr_ap_init(); #ifdef CONFIG_NUMA