aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/acpi
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2011-11-07 10:29:14 +0100
committerJan Beulich <jbeulich@suse.com>2011-11-07 10:29:14 +0100
commit4e3d89fbfa6e14e3ddce14b4da84adcb6f7ce0ea (patch)
treefab16a84ec2df628c1fd9b9ea613d55869a16fc6 /xen/include/acpi
parent7b3b6e264807698febcd202921ee68764243a93a (diff)
downloadxen-4e3d89fbfa6e14e3ddce14b4da84adcb6f7ce0ea.tar.gz
xen-4e3d89fbfa6e14e3ddce14b4da84adcb6f7ce0ea.tar.bz2
xen-4e3d89fbfa6e14e3ddce14b4da84adcb6f7ce0ea.zip
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>
Diffstat (limited to 'xen/include/acpi')
-rw-r--r--xen/include/acpi/cpufreq/cpufreq.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/include/acpi/cpufreq/cpufreq.h b/xen/include/acpi/cpufreq/cpufreq.h
index 754cc1acf6..3377232ccd 100644
--- a/xen/include/acpi/cpufreq/cpufreq.h
+++ b/xen/include/acpi/cpufreq/cpufreq.h
@@ -42,7 +42,7 @@ struct cpufreq_cpuinfo {
};
struct cpufreq_policy {
- cpumask_t cpus; /* affected CPUs */
+ cpumask_var_t cpus; /* affected CPUs */
unsigned int shared_type; /* ANY or ALL affected CPUs
should set cpufreq */
unsigned int cpu; /* cpu nr of registered CPU */