Skip to content
Commit 72859081 authored by Mike Travis's avatar Mike Travis Committed by Ingo Molnar
Browse files

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: default avatarMike Travis <travis@sgi.com>
Acked-by: default avatarRusty Russell <rusty@rustcorp.com.au>
Tested-by: default avatarDieter Ries <clip2@gmx.de>
Tested-by: default avatarMaciej Rutecki <maciej.rutecki@gmail.com>
Cc: Dave Jones <davej@redhat.com>
Cc: <cpufreq@vger.kernel.org>

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 8ccad40d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment