summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/cpufreq/powernow-k8.c
diff options
context:
space:
mode:
authorYinghai Lu2009-06-06 23:51:36 +0200
committerRusty Russell2009-06-09 15:00:27 +0200
commiteaa958402ea40851097d051f52ba1bb7a885efe9 (patch)
tree9187f59ff0ee6ac138b5c81a2212bc10f46d04a5 /arch/x86/kernel/cpu/cpufreq/powernow-k8.c
parentcpumask: introduce zalloc_cpumask_var (diff)
downloadkernel-qcow2-linux-eaa958402ea40851097d051f52ba1bb7a885efe9.tar.gz
kernel-qcow2-linux-eaa958402ea40851097d051f52ba1bb7a885efe9.tar.xz
kernel-qcow2-linux-eaa958402ea40851097d051f52ba1bb7a885efe9.zip
cpumask: alloc zeroed cpumask for static cpumask_var_ts
These are defined as static cpumask_var_t so if MAXSMP is not used, they are cleared already. Avoid surprises when MAXSMP is enabled. Signed-off-by: Yinghai Lu <yinghai.lu@kernel.org> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'arch/x86/kernel/cpu/cpufreq/powernow-k8.c')
-rw-r--r--arch/x86/kernel/cpu/cpufreq/powernow-k8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/cpufreq/powernow-k8.c b/arch/x86/kernel/cpu/cpufreq/powernow-k8.c
index 35dc8fbe92bd..cf52215d9eb1 100644
--- a/arch/x86/kernel/cpu/cpufreq/powernow-k8.c
+++ b/arch/x86/kernel/cpu/cpufreq/powernow-k8.c
@@ -887,7 +887,7 @@ static int powernow_k8_cpu_init_acpi(struct powernow_k8_data *data)
/* notify BIOS that we exist */
acpi_processor_notify_smm(THIS_MODULE);
- if (!alloc_cpumask_var(&data->acpi_data.shared_cpu_map, GFP_KERNEL)) {
+ if (!zalloc_cpumask_var(&data->acpi_data.shared_cpu_map, GFP_KERNEL)) {
printk(KERN_ERR PFX
"unable to alloc powernow_k8_data cpumask\n");
ret_val = -ENOMEM;