diff options
author | Guo Ren <ren_guo@c-sky.com> | 2018-12-19 12:56:14 +0100 |
---|---|---|
committer | Guo Ren <ren_guo@c-sky.com> | 2018-12-31 16:03:53 +0100 |
commit | 859e5f45cbb33fe5d591a8e429667f0b7d4f4be8 (patch) | |
tree | c3cd065d0ac34d9bc09af2a53d3cf64695329c89 /arch/csky/include/asm/smp.h | |
parent | clocksource/drivers/c-sky: fixup qemu fail to bootup sometimes. (diff) | |
download | linux-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/asm/smp.h')
-rw-r--r-- | arch/csky/include/asm/smp.h | 4 |
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 */ |