[POWERPC] spufs: fix use time accounting on SPE-overcommit
authorAndre Detsch <adetsch@br.ibm.com>
Mon, 25 Feb 2008 18:07:42 +0000 (15:07 -0300)
committerJeremy Kerr <jk@ozlabs.org>
Fri, 29 Feb 2008 04:48:55 +0000 (15:48 +1100)
commit2a58aa33daef37134c8a43dca0b7578c3fa7f993
treea690aa5b98f450dc5830b72d2a05c7598bd9e1b2
parentc92a1acb675058375cc508ad024c33358b42d766
[POWERPC] spufs: fix use time accounting on SPE-overcommit

The spu_runcntl_RW register is restored within spu_restore function.
So, at the end of spu_bind_context, the SPU context is not just loaded,
but running.

This change corrects the state switch to account the time as USER.

Signed-off-by: Andre Detsch <adetsch@br.ibm.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
arch/powerpc/platforms/cell/spufs/sched.c