Thread (2 messages) flat view 2 messages, 2 authors, 2008-12-11

Re: [PATCH] powermac: use set_hard_smp_processor_id() instead of smp_hw_index

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2008-12-11 05:20:40

On Wed, 2008-12-10 at 18:28 -0600, Nathan Lynch wrote:
The hard_smp_processor_id functions are the appropriate interfaces for
managing physical CPU ids.

Signed-off-by: Nathan Lynch <redacted>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---
quoted hunk ↗ jump to hunk
---
 arch/powerpc/platforms/powermac/smp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/platforms/powermac/smp.c b/arch/powerpc/platforms/powermac/smp.c
index 40f72c2..6b0711c 100644
--- a/arch/powerpc/platforms/powermac/smp.c
+++ b/arch/powerpc/platforms/powermac/smp.c
@@ -739,7 +739,7 @@ static void __init smp_core99_setup(int ncpus)
 
 		/* XXX should get this from reg properties */
 		for (i = 1; i < ncpus; ++i)
-			smp_hw_index[i] = i;
+			set_hard_smp_processor_id(i, i);
 	}
 #endif
 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help