diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2006-11-23 00:46:40 +0100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-12-04 10:40:24 +0100 |
commit | 2a14442bfebfea23d004fa4dfd067a94f5720ed7 (patch) | |
tree | 70d9f37913737bbaae43c493024f4074ebc01cc5 /arch/powerpc/xmon | |
parent | [POWERPC] Fix sparse warning in xmon Cell code (diff) | |
download | linux-2a14442bfebfea23d004fa4dfd067a94f5720ed7.tar.xz linux-2a14442bfebfea23d004fa4dfd067a94f5720ed7.zip |
[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>
Diffstat (limited to 'arch/powerpc/xmon')
-rw-r--r-- | arch/powerpc/xmon/xmon.c | 5 |
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) __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); |