summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/process.c
diff options
context:
space:
mode:
authorMark Rutland <mark.rutland@arm.com>2013-10-24 20:30:18 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2013-10-25 11:33:21 +0100
commit9327e2c6bb8cb0131b38a07847cd58c78dc095e9 (patch)
treea326739547f5521d1c1b2d228081f52466609e6c /arch/arm64/kernel/process.c
parente8765b265a69c83504afc6901d6e137b1811d1f0 (diff)
downloadlinux-stable-9327e2c6bb8cb0131b38a07847cd58c78dc095e9.tar.gz
linux-stable-9327e2c6bb8cb0131b38a07847cd58c78dc095e9.tar.bz2
linux-stable-9327e2c6bb8cb0131b38a07847cd58c78dc095e9.zip
arm64: add CPU_HOTPLUG infrastructure
This patch adds the basic infrastructure necessary to support CPU_HOTPLUG on arm64, based on the arm implementation. Actual hotplug support will depend on an implementation's cpu_operations (e.g. PSCI). Signed-off-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/kernel/process.c')
-rw-r--r--arch/arm64/kernel/process.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c
index 7ae8a1f00c3c..de17c89985db 100644
--- a/arch/arm64/kernel/process.c
+++ b/arch/arm64/kernel/process.c
@@ -102,6 +102,13 @@ void arch_cpu_idle(void)
local_irq_enable();
}
+#ifdef CONFIG_HOTPLUG_CPU
+void arch_cpu_idle_dead(void)
+{
+ cpu_die();
+}
+#endif
+
void machine_shutdown(void)
{
#ifdef CONFIG_SMP