|
@@ -530,7 +530,7 @@ static __cpuinit int threshold_create_bank(unsigned int cpu, unsigned int bank)
|
|
|
err = -ENOMEM;
|
|
|
goto out;
|
|
|
}
|
|
|
- if (!alloc_cpumask_var(&b->cpus, GFP_KERNEL)) {
|
|
|
+ if (!zalloc_cpumask_var(&b->cpus, GFP_KERNEL)) {
|
|
|
kfree(b);
|
|
|
err = -ENOMEM;
|
|
|
goto out;
|
|
@@ -543,7 +543,7 @@ static __cpuinit int threshold_create_bank(unsigned int cpu, unsigned int bank)
|
|
|
#ifndef CONFIG_SMP
|
|
|
cpumask_setall(b->cpus);
|
|
|
#else
|
|
|
- cpumask_copy(b->cpus, c->llc_shared_map);
|
|
|
+ cpumask_set_cpu(cpu, b->cpus);
|
|
|
#endif
|
|
|
|
|
|
per_cpu(threshold_banks, cpu)[bank] = b;
|