cpumask: convert kernel/cpu.c
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Dec 2008 23:42:28 +0000 (10:12 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Dec 2008 23:42:28 +0000 (10:12 +1030)
commite0b582ec56f1a1d8b30ebf340a7b91fb09f26c8c
treed96b9b657eda13b902a712dfb4f95321133caf1c
parentc309b917cab55799ea489d7b5f1b77025d9f8462
cpumask: convert kernel/cpu.c

Impact: Reduce kernel stack and memory usage, use new cpumask API.

Use cpumask_var_t for take_cpu_down() stack var, and frozen_cpus.

Note that notify_cpu_starting() can be called before core_initcall
allocates frozen_cpus, but the NULL check is optimized out by gcc for
the CONFIG_CPUMASK_OFFSTACK=n case.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
kernel/cpu.c