aboutsummaryrefslogtreecommitdiffstats
path: root/arch/csky/Kconfig
diff options
context:
space:
mode:
authorGuo Ren <ren_guo@c-sky.com>2018-12-19 19:56:14 +0800
committerGuo Ren <ren_guo@c-sky.com>2018-12-31 23:03:53 +0800
commit859e5f45cbb33fe5d591a8e429667f0b7d4f4be8 (patch)
treec3cd065d0ac34d9bc09af2a53d3cf64695329c89 /arch/csky/Kconfig
parentclocksource/drivers/c-sky: fixup qemu fail to bootup sometimes. (diff)
downloadlinux-dev-859e5f45cbb33fe5d591a8e429667f0b7d4f4be8.tar.xz
linux-dev-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 '')
-rw-r--r--arch/csky/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/csky/Kconfig b/arch/csky/Kconfig
index cb64f8dacd08..8bdbe9219662 100644
--- a/arch/csky/Kconfig
+++ b/arch/csky/Kconfig
@@ -198,6 +198,15 @@ config RAM_BASE
hex "DRAM start addr (the same with memory-section in dts)"
default 0x0
+config HOTPLUG_CPU
+ bool "Support for hot-pluggable CPUs"
+ select GENERIC_IRQ_MIGRATION
+ depends on SMP
+ help
+ Say Y here to allow turning CPUs off and on. CPUs can be
+ controlled through /sys/devices/system/cpu/cpu1/hotplug/target.
+
+ Say N if you want to disable CPU hotplug.
endmenu
source "kernel/Kconfig.hz"