[POWERPC] spufs: simplify state_mutex
authorChristoph Hellwig <hch@lst.de>
Tue, 13 Feb 2007 20:36:50 +0000 (21:36 +0100)
committerArnd Bergmann <arnd@klappe.arndb.de>
Tue, 13 Feb 2007 20:52:37 +0000 (21:52 +0100)
commit650f8b0291ecd0abdeadbd0ff3d70c3538e55405
tree3d3df208380ac7b2fafdd03b5fbcc01d2dedd934
parent202557d29eae528f464652e92085f3b19b05a0a7
[POWERPC] spufs: simplify state_mutex

The r/w semaphore to lock the spus was overkill and can be replaced
with a mutex to make it faster, simpler and easier to debug.  It also
helps to allow making most spufs interruptible in future patches.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
arch/powerpc/platforms/cell/spufs/context.c
arch/powerpc/platforms/cell/spufs/sched.c
arch/powerpc/platforms/cell/spufs/spufs.h