projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d54097b
)
powerpc/mpc85xx: check if core is disabled for showing status
author
York Sun
<yorksun@freescale.com>
Mon, 25 Mar 2013 07:40:00 +0000
(07:40 +0000)
committer
Andy Fleming
<afleming@freescale.com>
Fri, 24 May 2013 21:54:09 +0000
(16:54 -0500)
"cpu <num> status" should check if core is disabled before printing
the spin table location.
Signed-off-by: York Sun <yorksun@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
arch/powerpc/cpu/mpc85xx/mp.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/cpu/mpc85xx/mp.c
b/arch/powerpc/cpu/mpc85xx/mp.c
index 43d4836303d4f02149ce6f9f117dbf5e395be17b..861c8e028726eb02f160a8f14f72ba19e4194865 100644
(file)
--- a/
arch/powerpc/cpu/mpc85xx/mp.c
+++ b/
arch/powerpc/cpu/mpc85xx/mp.c
@@
-80,6
+80,8
@@
int cpu_status(int nr)
if (nr == id) {
table = (u32 *)&__spin_table;
printf("table base @ 0x%p\n", table);
+ } else if (is_core_disabled(nr)) {
+ puts("Disabled\n");
} else {
table = (u32 *)&__spin_table + nr * NUM_BOOT_ENTRY;
printf("Running on cpu %d\n", id);