[POWERPC] Show state of spus as theyre stopped in Cell xmon helper
authorMichael Ellerman <michael@ellerman.id.au>
Wed, 22 Nov 2006 23:46:40 +0000 (00:46 +0100)
committerPaul Mackerras <paulus@samba.org>
Mon, 4 Dec 2006 09:40:24 +0000 (20:40 +1100)
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>
arch/powerpc/xmon/xmon.c

index 6b9d720..ac17abb 100644 (file)
@@ -2702,7 +2702,10 @@ static void stop_spus(void)
                        __delay(200);
 
                        spu_info[i].stopped_ok = 1;
-                       printf("Stopped spu %.2d\n", i);
+
+                       printf("Stopped spu %.2d (was %s)\n", i,
+                                       spu_info[i].saved_spu_runcntl_RW ?
+                                       "running" : "stopped");
                } else {
                        catch_memory_errors = 0;
                        printf("*** Error stopping spu %.2d\n", i);