summaryrefslogtreecommitdiff
path: root/arch/powerpc/cpu/mpc85xx
diff options
context:
space:
mode:
authorYork Sun <yorksun@freescale.com>2013-03-25 07:40:00 +0000
committerAndy Fleming <afleming@freescale.com>2013-05-24 16:54:09 -0500
commit0c9ab437de1bcfd0524217619937b162273e43d4 (patch)
tree2b75334611dfca5e1080034f5c6103c4024b7505 /arch/powerpc/cpu/mpc85xx
parentd54097b6c10aab68dd0a88ec0d5c86615d3dd597 (diff)
downloadu-boot-imx-0c9ab437de1bcfd0524217619937b162273e43d4.zip
u-boot-imx-0c9ab437de1bcfd0524217619937b162273e43d4.tar.gz
u-boot-imx-0c9ab437de1bcfd0524217619937b162273e43d4.tar.bz2
powerpc/mpc85xx: check if core is disabled for showing status
"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>
Diffstat (limited to 'arch/powerpc/cpu/mpc85xx')
-rw-r--r--arch/powerpc/cpu/mpc85xx/mp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/cpu/mpc85xx/mp.c b/arch/powerpc/cpu/mpc85xx/mp.c
index 43d4836..861c8e0 100644
--- 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);