summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev/mpic.c
diff options
context:
space:
mode:
authorEmil Medve <Emilian.Medve@freescale.com>2015-01-21 16:21:14 -0600
committerMichael Ellerman <mpe@ellerman.id.au>2015-01-23 14:02:51 +1100
commit53a448c3d5d721cd85e3ad3e38c222a4dbb17f13 (patch)
tree44f258fdcac3c6cc5f166eff7e9b536202723777 /arch/powerpc/sysdev/mpic.c
parentbf794bf52a80c6278a028f0af2ca32d7c3508c9b (diff)
downloadblackbird-op-linux-53a448c3d5d721cd85e3ad3e38c222a4dbb17f13.tar.gz
blackbird-op-linux-53a448c3d5d721cd85e3ad3e38c222a4dbb17f13.zip
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>
Diffstat (limited to 'arch/powerpc/sysdev/mpic.c')
-rw-r--r--arch/powerpc/sysdev/mpic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/mpic.c b/arch/powerpc/sysdev/mpic.c
index c4648ad5c1f3..bbfbbf2025fd 100644
--- a/arch/powerpc/sysdev/mpic.c
+++ b/arch/powerpc/sysdev/mpic.c
@@ -1929,7 +1929,7 @@ int __init smp_mpic_probe(void)
DBG("smp_mpic_probe()...\n");
- nr_cpus = cpumask_weight(cpu_possible_mask);
+ nr_cpus = num_possible_cpus();
DBG("nr_cpus: %d\n", nr_cpus);
OpenPOWER on IntegriCloud