Skip to content

Commit

Permalink
powerpc: Make ppc32 respect the boot cpu id for !CONFIG_SMP
Browse files Browse the repository at this point in the history
Previously 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.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Kumar Gala authored and Benjamin Herrenschmidt committed Oct 12, 2008
1 parent 6070bf6 commit 78b5b62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/powerpc/include/asm/smp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit 78b5b62

Please sign in to comment.