소스 검색

ARM: mach-shmobile: Fix headsmp.S code to use CPUINIT

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>
Magnus Damm 13 년 전
부모
커밋
f0eab3889e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      arch/arm/mach-shmobile/headsmp.S

+ 1 - 1
arch/arm/mach-shmobile/headsmp.S

@@ -14,7 +14,7 @@
 #include <linux/init.h>
 #include <linux/init.h>
 #include <asm/memory.h>
 #include <asm/memory.h>
 
 
-	__INIT
+	__CPUINIT
 
 
 /*
 /*
  * Reset vector for secondary CPUs.
  * Reset vector for secondary CPUs.