]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite4d88fa7dccce88b96c0819543ff93e5e9bb930a
treed96b9b657eda13b902a712dfb4f95321133caf1c
parent2c24da545b2f47af1d61e9e9693dcde665de657d
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