Commit 3446fa05 authored by Adrian Bunk's avatar Adrian Bunk Committed by Ingo Molnar

x86_32: select_idle_routine() must be __cpuinit

CONFIG_HOTPLUG_CPU=y:

WARNING: vmlinux.o(.text+0x1199a): Section mismatch: reference to .init.text.5:select_idle_routine (between 'init_intel' and 'init_nexgen')
Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent f2206ec9
...@@ -261,7 +261,7 @@ static void mwait_idle(void) ...@@ -261,7 +261,7 @@ static void mwait_idle(void)
mwait_idle_with_hints(0, 0); mwait_idle_with_hints(0, 0);
} }
void __devinit select_idle_routine(const struct cpuinfo_x86 *c) void __cpuinit select_idle_routine(const struct cpuinfo_x86 *c)
{ {
if (cpu_has(c, X86_FEATURE_MWAIT)) { if (cpu_has(c, X86_FEATURE_MWAIT)) {
printk("monitor/mwait feature present.\n"); printk("monitor/mwait feature present.\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment