Skip to content

Commit

Permalink
x86: move select_idle_routine() call after detect_ht()
Browse files Browse the repository at this point in the history
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 <h-shimamoto@ct.jp.nec.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Hiroshi Shimamoto authored and Ingo Molnar committed Jan 30, 2008
1 parent 27415a4 commit 74ff305
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/x86/kernel/setup_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,6 @@ void __cpuinit identify_cpu(struct cpuinfo_x86 *c)
break;
}

select_idle_routine(c);
detect_ht(c);

/*
Expand All @@ -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
Expand Down

0 comments on commit 74ff305

Please sign in to comment.