cpufreq: allocate CPU masks dynamically
authorJan Beulich <jbeulich@suse.com>
Mon, 7 Nov 2011 09:29:14 +0000 (10:29 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 7 Nov 2011 09:29:14 +0000 (10:29 +0100)
commit4e3d89fbfa6e14e3ddce14b4da84adcb6f7ce0ea
treefab16a84ec2df628c1fd9b9ea613d55869a16fc6
parent7b3b6e264807698febcd202921ee68764243a93a
cpufreq: allocate CPU masks dynamically

struct cpufreq_policy, including a cpumask_t member, gets copied in
cpufreq_limit_change(), cpufreq_add_cpu(), set_cpufreq_gov(), and
set_cpufreq_para(). Make the member a cpumask_var_t, thus reducing the
amount of data needing copying (particularly with large NR_CPUS).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/acpi/cpufreq/cpufreq.c
xen/arch/x86/acpi/cpufreq/powernow.c
xen/drivers/acpi/pmstat.c
xen/drivers/cpufreq/cpufreq.c
xen/drivers/cpufreq/cpufreq_ondemand.c
xen/include/acpi/cpufreq/cpufreq.h