aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2006-11-22 18:46:40 -0500
committerPaul Mackerras <paulus@samba.org>2006-12-04 04:40:24 -0500
commit2a14442bfebfea23d004fa4dfd067a94f5720ed7 (patch)
tree70d9f37913737bbaae43c493024f4074ebc01cc5
parent437a0706837d09d8ab071c6790da07d9d6bb3d22 (diff)
[POWERPC] Show state of spus as theyre stopped in Cell xmon helper
After stopping spus in xmon I often find myself trawling through the field dumps to find out which spus were running. The spu stopping code actually knows what's running, so let's print it out to save the user some futzing. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
-rw-r--r--arch/powerpc/xmon/xmon.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c
index 6b9d720f7ff8..ac17abbe3ef0 100644
--- a/arch/powerpc/xmon/xmon.c
+++ b/arch/powerpc/xmon/xmon.c
@@ -2702,7 +2702,10 @@ static void stop_spus(void)
2702 __delay(200); 2702 __delay(200);
2703 2703
2704 spu_info[i].stopped_ok = 1; 2704 spu_info[i].stopped_ok = 1;
2705 printf("Stopped spu %.2d\n", i); 2705
2706 printf("Stopped spu %.2d (was %s)\n", i,
2707 spu_info[i].saved_spu_runcntl_RW ?
2708 "running" : "stopped");
2706 } else { 2709 } else {
2707 catch_memory_errors = 0; 2710 catch_memory_errors = 0;
2708 printf("*** Error stopping spu %.2d\n", i); 2711 printf("*** Error stopping spu %.2d\n", i);