]> git.baikalelectronics.ru Git - kernel.git/commit
cpumask: use work_on_cpu in acpi-cpufreq.c for drv_read and drv_write
authorMike Travis <travis@sgi.com>
Sun, 4 Jan 2009 13:18:09 +0000 (05:18 -0800)
committerIngo Molnar <mingo@elte.hu>
Tue, 6 Jan 2009 08:05:40 +0000 (09:05 +0100)
commit284d1ec4ffe6017387de8833454c68d5d24d0183
tree644bad5d5d8936e92183a37ba37baeb6af1f3310
parent8807dc60fc505fe271e9937c145c8dd7f43a8290
cpumask: use work_on_cpu in acpi-cpufreq.c for drv_read and drv_write

Impact: use new cpumask API to reduce stack usage

Replace the saving of current->cpus_allowed and set_cpus_allowed_ptr() with
a work_on_cpu function for drv_read() and drv_write().

Basically converts do_drv_{read,write} into "work_on_cpu" functions that
are now called by drv_read and drv_write.

Signed-off-by: Mike Travis <travis@sgi.com>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c