diff mbox

[6/12] arch/powerpc: remove references to cpu_*_map.

Message ID 1329281884.20466.rusty@rustcorp.com.au (mailing list archive)
State Superseded
Headers show

Commit Message

Rusty Russell Feb. 15, 2012, 4:58 a.m. UTC
From: Rusty Russell <rusty@rustcorp.com.au>

This has been obsolescent for a while; time for the final push.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: linuxppc-dev@lists.ozlabs.org
---
 arch/powerpc/platforms/wsp/smp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Srivatsa S. Bhat Feb. 15, 2012, 9:21 a.m. UTC | #1
On 02/15/2012 10:28 AM, Rusty Russell wrote:

> From: Rusty Russell <rusty@rustcorp.com.au>
> 
> This has been obsolescent for a while; time for the final push.
> 
> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> Cc: Paul Mackerras <paulus@samba.org>
> Cc: linuxppc-dev@lists.ozlabs.org
> ---


Reviewed-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>

Regards,
Srivatsa S. Bhat
Benjamin Herrenschmidt Feb. 16, 2012, 3:29 a.m. UTC | #2
On Wed, 2012-02-15 at 14:51 +0530, Srivatsa S. Bhat wrote:
> On 02/15/2012 10:28 AM, Rusty Russell wrote:
> 
> > From: Rusty Russell <rusty@rustcorp.com.au>
> > 
> > This has been obsolescent for a while; time for the final push.
> > 

Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

Want me to stick that in -powerpc ? If yes, now or -next ?

Cheers,
Ben.
Rusty Russell Feb. 19, 2012, 10:45 p.m. UTC | #3
On Thu, 16 Feb 2012 14:29:04 +1100, Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
> On Wed, 2012-02-15 at 14:51 +0530, Srivatsa S. Bhat wrote:
> > On 02/15/2012 10:28 AM, Rusty Russell wrote:
> > 
> > > From: Rusty Russell <rusty@rustcorp.com.au>
> > > 
> > > This has been obsolescent for a while; time for the final push.
> > > 
> 
> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> 
> Want me to stick that in -powerpc ? If yes, now or -next ?

Please, in -next.

Cheers,
Rusty.
diff mbox

Patch

diff --git a/arch/powerpc/platforms/wsp/smp.c b/arch/powerpc/platforms/wsp/smp.c
--- a/arch/powerpc/platforms/wsp/smp.c
+++ b/arch/powerpc/platforms/wsp/smp.c
@@ -71,7 +71,7 @@  int __devinit smp_a2_kick_cpu(int nr)
 
 static int __init smp_a2_probe(void)
 {
-	return cpus_weight(cpu_possible_map);
+	return num_possible_cpus();
 }
 
 static struct smp_ops_t a2_smp_ops = {