ARM: mach-shmobile: Fix headsmp.S code to use CPUINIT
authorMagnus Damm <damm@opensource.se>
Wed, 28 Dec 2011 07:44:06 +0000 (16:44 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 9 Jan 2012 01:36:48 +0000 (10:36 +0900)
Convert the low level SMP assembly code for SH-Mobile ARM
from using the INIT to the CPUINIT section. This unbreaks
onlining of CPUs using the CPU hotplug interface:

echo 1 > /sys/devices/system/cpu/cpu1/online

Without this fix the reset vector code used by CPU hotplug
will be freed as init section data and CPU cores cannot
be brought online.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/arm/mach-shmobile/headsmp.S

index 26079d933d913e1bf4f04e68d6a23e1eb3225e3d..6ac015c892060e72b29c2a60735a810762b0c115 100644 (file)
@@ -14,7 +14,7 @@
 #include <linux/init.h>
 #include <asm/memory.h>
 
-       __INIT
+       __CPUINIT
 
 /*
  * Reset vector for secondary CPUs.