From: York Sun Date: Mon, 25 Mar 2013 07:40:00 +0000 (+0000) Subject: powerpc/mpc85xx: check if core is disabled for showing status X-Git-Tag: v2013.07-rc1~54^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0c9ab437de1bcfd0524217619937b162273e43d4;p=platform%2Fkernel%2Fu-boot.git powerpc/mpc85xx: check if core is disabled for showing status "cpu status" should check if core is disabled before printing the spin table location. Signed-off-by: York Sun Signed-off-by: Andy Fleming --- 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);