]> Git Repo - linux.git/commit
cpufreq: use work_on_cpu in acpi-cpufreq.c for drv_read and drv_write
authorMike Travis <[email protected]>
Fri, 16 Jan 2009 23:31:15 +0000 (15:31 -0800)
committerIngo Molnar <[email protected]>
Mon, 19 Jan 2009 21:36:13 +0000 (22:36 +0100)
commit72859081851af2bda04117ca3d64206ffa199e5e
tree5e532d7dfb1e96e5eb371253785892e1218d9e30
parent8ccad40df8d314f786fdb06bdbedd4f43f3257cd
cpufreq: use work_on_cpu in acpi-cpufreq.c for drv_read and drv_write

Impact: use new work_on_cpu function 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.

Note: This patch basically reverts 50c668d6 which reverted 7503bfba, now
that the work_on_cpu() function is more stable.

Signed-off-by: Mike Travis <[email protected]>
Acked-by: Rusty Russell <[email protected]>
Tested-by: Dieter Ries <[email protected]>
Tested-by: Maciej Rutecki <[email protected]>
Cc: Dave Jones <[email protected]>
Cc: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c
This page took 0.053383 seconds and 4 git commands to generate.