Skip to contentSkip to conversation

x86_32: select_idle_routine() must be __cpuinit

PATCH New Adrian Bunk 1 participant 1 message Dec 11, 2007 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86_32: select_idle_routine() must be __cpuinit

This patch fixes the following section mismatch with CONFIG_HOTPLUG=n, CONFIG_HOTPLUG_CPU=y:

<-- snip -->

...
WARNING: vmlinux.o(.text+0x1199a): Section mismatch: reference to .init.text.5:select_idle_routine (between 'init_intel' and 'init_nexgen')
...

<-- snip -->

---
897e76d379d0743bd2241989c0e1391ad21e500f

arch/x86/kernel/process_32.c +1 -1
index 7b89958..9663c2a 100644
@@ -261,7 +261,7 @@ static void mwait_idle(void)
 	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)) {
 		printk("monitor/mwait feature present.\n");