Skip to content

Commit

Permalink
ARM: mach-shmobile: Fix headsmp.S code to use CPUINIT
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Magnus Damm authored and Paul Mundt committed Jan 9, 2012
1 parent a0e86bd commit f0eab38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-shmobile/headsmp.S
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <linux/init.h>
#include <asm/memory.h>

__INIT
__CPUINIT

/*
* Reset vector for secondary CPUs.
Expand Down

0 comments on commit f0eab38

Please sign in to comment.