[POWERPC] spufs: Use SPU master control to prevent wild SPU execution
authorArnd Bergmann <arnd@arndb.de>
Mon, 20 Nov 2006 17:45:08 +0000 (18:45 +0100)
committerPaul Mackerras <paulus@samba.org>
Mon, 4 Dec 2006 09:40:02 +0000 (20:40 +1100)
commitee2d7340cbf3b123e1c3b7454f3e2b7e65d33bb2
tree2953689e0efdb35195e46c75148bfb91030f71fa
parent3692dc66149dc17cd82ec785a06478322c0eddff
[POWERPC] spufs: Use SPU master control to prevent wild SPU execution

When the user changes the runcontrol register, an SPU might be
running without a process being attached to it and waiting for
events. In order to prevent this, make sure we always disable
the priv1 master control when we're not inside of spu_run.

Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/spufs/backing_ops.c
arch/powerpc/platforms/cell/spufs/context.c
arch/powerpc/platforms/cell/spufs/hw_ops.c
arch/powerpc/platforms/cell/spufs/inode.c
arch/powerpc/platforms/cell/spufs/run.c
arch/powerpc/platforms/cell/spufs/spufs.h