diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2009-06-23 05:00:31 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-06-24 13:34:40 -0400 |
commit | 1b2bc75c1bde6581d2694cb3ed7fb06b69685008 (patch) | |
tree | 800fc23052bccb1fbf8acfbaabbf5648c69daa9e /arch/mips/Kconfig | |
parent | 4ac4aa5cc3b00cc558575065ae71043e92d1a69a (diff) |
MIPS: Add arch generic CPU hotplug
Each platform has to add support for CPU hotplugging itself by providing
suitable definitions for the cpu_disable and cpu_die of the smp_ops
methods and setting SYS_SUPPORTS_HOTPLUG_CPU. A platform should only set
SYS_SUPPORTS_HOTPLUG_CPU once all it's smp_ops definitions have the
necessary changes. This patch contains the changes to the dummy smp_ops
definition for uni-processor systems.
Parts of the code contributed by Cavium Inc.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/Kconfig')
-rw-r--r-- | arch/mips/Kconfig | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index b29f0280d712..eb7e8d795c6a 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig | |||
@@ -784,8 +784,17 @@ config SYS_HAS_EARLY_PRINTK | |||
784 | bool | 784 | bool |
785 | 785 | ||
786 | config HOTPLUG_CPU | 786 | config HOTPLUG_CPU |
787 | bool "Support for hot-pluggable CPUs" | ||
788 | depends on SMP && HOTPLUG && SYS_SUPPORTS_HOTPLUG_CPU | ||
789 | help | ||
790 | Say Y here to allow turning CPUs off and on. CPUs can be | ||
791 | controlled through /sys/devices/system/cpu. | ||
792 | (Note: power management support will enable this option | ||
793 | automatically on SMP systems. ) | ||
794 | Say N if you want to disable CPU hotplug. | ||
795 | |||
796 | config SYS_SUPPORTS_HOTPLUG_CPU | ||
787 | bool | 797 | bool |
788 | default n | ||
789 | 798 | ||
790 | config I8259 | 799 | config I8259 |
791 | bool | 800 | bool |