Commit 53a448c3 authored by Emil Medve's avatar Emil Medve Committed by Michael Ellerman

powerpc: Replace cpumask_weight(cpu_possible_mask) with num_possible_cpus()

num_possible_cpus() is just a shorthand for it.
Signed-off-by: default avatarEmil Medve <Emilian.Medve@Freescale.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent bf794bf5
...@@ -106,7 +106,7 @@ static int __init smp_iic_probe(void) ...@@ -106,7 +106,7 @@ static int __init smp_iic_probe(void)
{ {
iic_request_IPIs(); iic_request_IPIs();
return cpumask_weight(cpu_possible_mask); return num_possible_cpus();
} }
static void smp_cell_setup_cpu(int cpu) static void smp_cell_setup_cpu(int cpu)
......
...@@ -272,7 +272,7 @@ static int pseries_add_processor(struct device_node *np) ...@@ -272,7 +272,7 @@ static int pseries_add_processor(struct device_node *np)
*/ */
printk(KERN_ERR "Cannot add cpu %s; this system configuration" printk(KERN_ERR "Cannot add cpu %s; this system configuration"
" supports %d logical cpus.\n", np->full_name, " supports %d logical cpus.\n", np->full_name,
cpumask_weight(cpu_possible_mask)); num_possible_cpus());
goto out_unlock; goto out_unlock;
} }
......
...@@ -1929,7 +1929,7 @@ int __init smp_mpic_probe(void) ...@@ -1929,7 +1929,7 @@ int __init smp_mpic_probe(void)
DBG("smp_mpic_probe()...\n"); DBG("smp_mpic_probe()...\n");
nr_cpus = cpumask_weight(cpu_possible_mask); nr_cpus = num_possible_cpus();
DBG("nr_cpus: %d\n", nr_cpus); DBG("nr_cpus: %d\n", nr_cpus);
......
...@@ -148,7 +148,7 @@ int __init xics_smp_probe(void) ...@@ -148,7 +148,7 @@ int __init xics_smp_probe(void)
/* Register all the IPIs */ /* Register all the IPIs */
xics_request_ipi(); xics_request_ipi();
return cpumask_weight(cpu_possible_mask); return num_possible_cpus();
} }
#endif /* CONFIG_SMP */ #endif /* CONFIG_SMP */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment