Skip to contentSkip to conversation

x86_64 implementation of cpu bulk removal

PATCH In review Shaohua Li 1 participant 1 message May 8, 2006

lore
Share & tools
lore

Shaohua Li

author
#0 lore raw

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.

---

 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
diff -puN arch/x86_64/Kconfig~x86-64-bulk-cpu-hotplug arch/x86_64/Kconfig
@@ -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

_