Skip to contentSkip to conversation

powermac: use set_hard_smp_processor_id() instead of smp_hw_index

PATCH In review Nathan Lynch 2 participants 2 messages Dec 11, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powermac: use set_hard_smp_processor_id() instead of smp_hw_index

The hard_smp_processor_id functions are the appropriate interfaces for managing physical CPU ids.

---
 arch/powerpc/platforms/powermac/smp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/powerpc/platforms/powermac/smp.c +1 -1
index 40f72c2..6b0711c 100644
@@ -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
 
Signature · 1 line
1.5.5
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Nathan Lynch

The hard_smp_processor_id functions are the appropriate interfaces for managing physical CPU ids.

---

Quoted 17 lines
---
 arch/powerpc/platforms/powermac/smp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/powerpc/platforms/powermac/smp.c +1 -1
index 40f72c2..6b0711c 100644
@@ -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