Skip to contentSkip to conversation

POWERPC: Change 86xx platforms to use CONFIG_NR_CPUS

PATCH New Becky Bruce 2 participants 2 messages Aug 6, 2008 – Aug 11, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 POWERPC: Change 86xx platforms to use CONFIG_NR_CPUS

Currently, they use CONFIG_NUM_CPUS, which is different than 85xx for no good reason.

---
Note: This is a resend; the first version accidentally changed the NR_CPUs on 8610 to 2.

 cpu/mpc86xx/start.S           |    4 ++--
 include/configs/MPC8610HPCD.h |    2 +-
 include/configs/MPC8641HPCN.h |    2 +-
 include/configs/sbc8641d.h    |    2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)
cpu/mpc86xx/start.S +2 -2
index 03f2128..83072bb 100644
@@ -183,7 +183,7 @@ boot_warm:
 	/* if this is a multi-core system we need to check which cpu
 	 * this is, if it is not cpu 0 send the cpu to the linux reset
 	 * vector */
-#if (CONFIG_NUM_CPUS > 1)
+#if (CONFIG_NR_CPUS > 1)
 	mfspr	r0, MSSCR0
 	andi.	r0, r0, 0x0020
 	rlwinm	r0,r0,27,31,31
@@ -979,7 +979,7 @@ unlock_ram_in_cache:
  * Sri:	 Much of this initialization is not required. Linux
  * rewrites the bats, and the sprs and also enables the L1 cache.
  */
-#if (CONFIG_NUM_CPUS > 1)
+#if (CONFIG_NR_CPUS > 1)
 .globl secondary_cpu_setup
 secondary_cpu_setup:
 	/* Do only core setup on all cores except cpu0 */
include/configs/MPC8610HPCD.h +1 -1
index 1cba270..50a05f2 100644
@@ -17,7 +17,7 @@
 #define CONFIG_MPC86xx		1	/* MPC86xx */
 #define CONFIG_MPC8610		1	/* MPC8610 specific */
 #define CONFIG_MPC8610HPCD	1	/* MPC8610HPCD board specific */
-#define CONFIG_NUM_CPUS		1	/* Number of CPUs in the system */
+#define CONFIG_NR_CPUS		1	/* Number of CPUs in the system */
 #define CONFIG_LINUX_RESET_VEC	0x100	/* Reset vector used by Linux */
 
 #define CONFIG_FSL_DIU_FB	1	/* FSL DIU */
include/configs/MPC8641HPCN.h +1 -1
index ccba409..78a9d11 100644
@@ -36,7 +36,7 @@
 #define CONFIG_MPC86xx		1	/* MPC86xx */
 #define CONFIG_MPC8641		1	/* MPC8641 specific */
 #define CONFIG_MPC8641HPCN	1	/* MPC8641HPCN board specific */
-#define CONFIG_NUM_CPUS		2	/* Number of CPUs in the system */
+#define CONFIG_NR_CPUS		2	/* Number of CPUs in the system */
 #define CONFIG_LINUX_RESET_VEC	0x100	/* Reset vector used by Linux */
 
 #ifdef RUN_DIAG
include/configs/sbc8641d.h +1 -1
index 3cd9ff8..76712fd 100644
@@ -40,7 +40,7 @@
 #define CONFIG_MPC86xx		1	/* MPC86xx */
 #define CONFIG_MPC8641		1	/* MPC8641 specific */
 #define CONFIG_SBC8641D		1	/* SBC8641D board specific */
-#define CONFIG_NUM_CPUS         2       /* Number of CPUs in the system */
+#define CONFIG_NR_CPUS		2	/* Number of CPUs in the system */
 #define CONFIG_LINUX_RESET_VEC  0x100   /* Reset vector used by Linux */
 
 #ifdef RUN_DIAG
Signature · 1 line
1.5.5.1
#1 lore raw

PATCH 1/1 POWERPC: Change 86xx platforms to use CONFIG_NR_CPUS

Quoted 7 lines · Becky Bruce

Currently, they use CONFIG_NUM_CPUS, which is different than 85xx for no good reason.

---
Note: This is a resend; the first version accidentally changed the NR_CPUs on 8610 to 2.

I have ACKed Kumar's version of this patch!

jdl