x86_64 implementation of cpu bulk removal
PATCH 7/10 x86_64 implementation of cpu bulk removal
x86_64 specific implementation of cpu bulk removal. Add the config and make __cpu_die/__cpu_disable work with cpumask_t.
Signed-off-by Ashok Raj <[email protected]>
Signed-off-by Shaohua Li <[email protected]>
---
linux-2.6.17-rc3-root/arch/x86_64/Kconfig | 10 + linux-2.6.17-rc3-root/arch/x86_64/kernel/smpboot.c | 125 +++++++++++++++------ 2 files changed, 102 insertions(+), 33 deletions(-)
arch/x86_64/Kconfig renamed from arch/x86_64/Kconfig~x86-64-bulk-cpu-hotplug +10 -0
@@ -369,6 +369,16 @@ config HOTPLUG_CPU can be controlled through /sys/devices/system/cpu/cpu#. Say N if you want to disable CPU hotplug. +config BULK_CPU_REMOVE + bool "Support for bulk removal of CPUs (EXPERIMENTAL)" + depends on HOTPLUG_CPU && EXPERIMENTAL + help + Say Y if need the ability to remove more than one cpu during cpu + removal. Current mechanisms may be in-efficient when a NUMA + node is being removed, which would involve removing one cpu at a + time. This will let interrupts, timers and processes to be bound + to a CPU that might be removed right after the current cpu is + being offlined. config HPET_TIMER bool
arch/x86_64/kernel/smpboot.c renamed from arch/x86_64/kernel/smpboot.c~x86-64-bulk-cpu-hotplug +92 -33
172 lines not on this page · raw message
_