Skip to content

Commit

Permalink
[POWERPC] Show state of spus as theyre stopped in Cell xmon helper
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Dec 4, 2006
1 parent 437a070 commit 2a14442
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arch/powerpc/xmon/xmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2a14442

Please sign in to comment.