]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit0d740aefa170ea5756c9174dca637c58dcc6c473
tree3d3df208380ac7b2fafdd03b5fbcc01d2dedd934
parent7431117ad7e92ac5db3269a368edcd76f380ca33
[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