summaryrefslogtreecommitdiffstats
path: root/arch/csky/include
diff options
context:
space:
mode:
authorGuo Ren <ren_guo@c-sky.com>2018-12-19 12:56:14 +0100
committerGuo Ren <ren_guo@c-sky.com>2018-12-31 16:03:53 +0100
commit859e5f45cbb33fe5d591a8e429667f0b7d4f4be8 (patch)
treec3cd065d0ac34d9bc09af2a53d3cf64695329c89 /arch/csky/include
parentclocksource/drivers/c-sky: fixup qemu fail to bootup sometimes. (diff)
downloadlinux-859e5f45cbb33fe5d591a8e429667f0b7d4f4be8.tar.xz
linux-859e5f45cbb33fe5d591a8e429667f0b7d4f4be8.zip
csky: CPU-hotplug supported for SMP
This is a simple implement of CPU-hotplug for power saving. CPU use wait instruction to enter power saving mode and waiting for IPI wakeup signal. Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Diffstat (limited to 'arch/csky/include')
-rw-r--r--arch/csky/include/asm/smp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/csky/include/asm/smp.h b/arch/csky/include/asm/smp.h
index 4a929c4d6437..668b79ce29ea 100644
--- a/arch/csky/include/asm/smp.h
+++ b/arch/csky/include/asm/smp.h
@@ -21,6 +21,10 @@ void __init set_send_ipi(void (*func)(const struct cpumask *mask), int irq);
#define raw_smp_processor_id() (current_thread_info()->cpu)
+int __cpu_disable(void);
+
+void __cpu_die(unsigned int cpu);
+
#endif /* CONFIG_SMP */
#endif /* __ASM_CSKY_SMP_H */