85xx: Rename CONFIG_NR_CPUS to CONFIG_NUM_CPUS
PATCH 1/1 85xx: Rename CONFIG_NR_CPUS to CONFIG_NUM_CPUS
Use CONFIG_NUM_CPUS to match existing define used by 86xx.
--- common/cmd_mp.c | 4 ++-- cpu/mpc85xx/mp.c | 4 ++-- cpu/mpc85xx/release.S | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-)
common/cmd_mp.c +2 -2
@@ -34,9 +34,9 @@ cpu_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) } cpuid =simple_strtoul (argv[1 ],NULL ,10 ); -if (cpuid >=CONFIG_NR_CPUS ) { +if (cpuid >=CONFIG_NUM_CPUS ) {printf ("Core num: %lu is out of range[0..%d]\n" , - cpuid,CONFIG_NR_CPUS -1 ); + cpuid,CONFIG_NUM_CPUS -1 );return 1 ; }
cpu/mpc85xx/mp.c +2 -2
@@ -147,7 +147,7 @@ static void pq3_mp_up(unsigned long bootpg)out_be32 (&gur->devdisr, devdisr);/* release the hounds */ - up = ((1 <<CONFIG_NR_CPUS ) -1 ); + up = ((1 <<CONFIG_NUM_CPUS ) -1 ); bpcr =in_be32 (&ecm->eebpcr); bpcr |= (up <<24 );out_be32 (&ecm->eebpcr, bpcr);
@@ -157,7 +157,7 @@ static void pq3_mp_up(unsigned long bootpg)/* wait for everyone */ while (timeout) {int i; -for (i =0 ; i <CONFIG_NR_CPUS ; i++) { +for (i =0 ; i <CONFIG_NUM_CPUS ; i++) {if (table[i *NUM_BOOT_ENTRY +BOOT_ENTRY_ADDR_LOWER ]) cpu_up_mask |= (1 << i); };
cpu/mpc85xx/release.S +1 -1
@@ -173,7 +173,7 @@ __secondary_start_page: .align L1_CACHE_SHIFT .globl __spin_table __spin_table: - .space CONFIG_NR_CPUS*ENTRY_SIZE + .space CONFIG_NUM_CPUS*ENTRY_SIZE /* Fill in the empty space. The actual reset vector is * the last word of the page */
Signature · 1 line
1.5.5.1
PATCH 1/1 85xx: Rename CONFIG_NR_CPUS to CONFIG_NUM_CPUS
Quoted 8 lines · Kumar Gala
Use
CONFIG_NUM_CPUSto match existing define used by 86xx.Signed-off-by Kumar Gala <[email protected]>--- common/cmd_mp.c | 4 ++-- cpu/mpc85xx/mp.c | 4 ++-- cpu/mpc85xx/release.S | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-)
Thanks!
jdl
PATCH 1/1 85xx: Rename CONFIG_NR_CPUS to CONFIG_NUM_CPUS
Quoted 11 lines · Jon Loeliger
Quoted 8 lines · Kumar Gala
Use
CONFIG_NUM_CPUSto match existing define used by 86xx.Signed-off-by Kumar Gala <[email protected]>---
common/cmd_mp.c | 4 ++-- cpu/mpc85xx/mp.c | 4 ++-- cpu/mpc85xx/release.S | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-)Acked-by Jon Loeliger <[email protected]>
Not paying attention? I already sent a patch changing 86xx to match 85xx as we originally discussed, but this is also OK, as my patch hasn't been picked up.... Doesn't matter to me as long as it's consistent.
PATCH 1/1 85xx: Rename CONFIG_NR_CPUS to CONFIG_NUM_CPUS
Quoted 13 lines · Becky Bruce
Quoted 10 lines · Jon Loeliger
Quoted 8 lines · Kumar Gala
Use
CONFIG_NUM_CPUSto match existing define used by 86xx.Signed-off-by Kumar Gala <[email protected]>---
common/cmd_mp.c | 4 ++-- cpu/mpc85xx/mp.c | 4 ++-- cpu/mpc85xx/release.S | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-)
Quoted 6 lines
Quoted 1 line
Acked-by Jon Loeliger <[email protected]>Not paying attention? I already sent a patch changing 86xx to match 85xx as we originally discussed, but this is also OK, as my patch hasn't been picked up.... Doesn't matter to me as long as it's consistent.
We discussed this on IRC and decided to use the 86xx name.
- k
Wolfgang Denk
AppliedPATCH 1/1 85xx: Rename CONFIG_NR_CPUS to CONFIG_NUM_CPUS
In reply to Kumar GalaDear Kumar Gala,
Quoted 8 lines · In message <[email protected]> you wrote:
Use
CONFIG_NUM_CPUSto match existing define used by 86xx.Signed-off-by Kumar Gala <[email protected]>--- common/cmd_mp.c | 4 ++-- cpu/mpc85xx/mp.c | 4 ++-- cpu/mpc85xx/release.S | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de People seldom know what they want until you give them what they ask for.