Skip to contentSkip to conversation

powerpc: Make ppc32 actually respect the boot cpu id for !CONFIG_SMP

PATCH New Kumar Gala 1 participant 1 message Oct 10, 2008 PowerPC

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH v2 1/1 powerpc: Make ppc32 actually respect the boot cpu id for !CONFIG_SMP

Previosly the FDT header field boot_cpuid_phys wasn't actually used on ppc32. Instead the physical boot cpuid was assumed to be 0 for !CONFIG_SMP.

---

set boot_cpuid_phys to phys, not logical

- k

 arch/powerpc/include/asm/smp.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
arch/powerpc/include/asm/smp.h +2 -1
index c092f84..1866cec 100644
@@ -93,7 +93,7 @@ extern void __cpu_die(unsigned int cpu);
 
 #else
 /* for UP */
-#define hard_smp_processor_id()		0
+#define hard_smp_processor_id()		get_hard_smp_processor_id(0)
 #define smp_setup_cpu_maps()
 
 #endif /* CONFIG_SMP */
@@ -122,6 +122,7 @@ static inline int get_hard_smp_processor_id(int cpu)
 
 static inline void set_hard_smp_processor_id(int cpu, int phys)
 {
+	boot_cpuid_phys = phys;
 }
 #endif /* !CONFIG_SMP */
 #endif /* !CONFIG_PPC64 */
Signature · 1 line
1.5.5.1