powerpc: Replace cpumask_weight(cpu_possible_mask) with num_possible_cpus()
num_possible_cpus() is just a shorthand for it. Signed-off-by: Emil Medve <Emilian.Medve@Freescale.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:

committed by
Michael Ellerman

parent
bf794bf52a
commit
53a448c3d5
@@ -272,7 +272,7 @@ static int pseries_add_processor(struct device_node *np)
|
||||
*/
|
||||
printk(KERN_ERR "Cannot add cpu %s; this system configuration"
|
||||
" supports %d logical cpus.\n", np->full_name,
|
||||
cpumask_weight(cpu_possible_mask));
|
||||
num_possible_cpus());
|
||||
goto out_unlock;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user