]> git.karo-electronics.de Git - karo-tx-linux.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)
commit7503bfbae89eba07b46441a5d1594647f6b8ab7d
tree644bad5d5d8936e92183a37ba37baeb6af1f3310
parent4d8bb5374924fc736ce275bfd1619b87a2106860
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