cpumask: use work_on_cpu in acpi-cpufreq.c for read_measured_perf_ctrs
authorMike Travis <travis@sgi.com>
Sun, 4 Jan 2009 13:18:10 +0000 (05:18 -0800)
committerIngo Molnar <mingo@elte.hu>
Tue, 6 Jan 2009 08:05:43 +0000 (09:05 +0100)
commite39ad415ac15116df213dfa2aa2a4f1b0857af9c
tree9db4cb172bbcf07cb9db381fbfc7e8cda33b4eda
parent7503bfbae89eba07b46441a5d1594647f6b8ab7d
cpumask: use work_on_cpu in acpi-cpufreq.c for read_measured_perf_ctrs

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 read_measured_perf_ctrs().

Basically splits off the work function from get_measured_perf which is
run on the designated cpu.  Moves definition of struct perf_cur out of
function local namespace, and is used as the work function argument.
References in get_measured_perf use values in the perf_cur struct.

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