1
linux/arch/powerpc/platforms/cell/spufs
Christoph Hellwig 7ec18ab923 [POWERPC] spufs: streamline locking for isolated spu setup
For quite a while now spu state is protected by a simple mutex instead
of the old rw_semaphore, and this means we can simplify the locking
around spu_setup_isolated a lot.

Instead of doing an spu_release before entering spu_setup_isolated and
then calling the complicated spu_acquire_exclusive we can now simply
enter the function locked an in guaranteed runnable state, so that the
only bit of spu_acquire_exclusive that's left is the call to
spu_unmap_mappings.

Similarly there's no more need to unlock and reacquire the state_mutex
when spu_setup_isolated is done, but we can always return with the
lock held and only drop it in spu_run_init in the failure case.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
2007-04-23 21:18:54 +02:00
..
backing_ops.c [POWERPC] spufs: Add runcntrl read accessors 2006-12-04 20:40:04 +11:00
context.c [POWERPC] spufs: streamline locking for isolated spu setup 2007-04-23 21:18:54 +02:00
coredump.c [POWERPC] Fix SPU coredump code for max_fdset removal 2006-12-11 15:13:37 +11:00
file.c [POWERPC] spufs: clear mapping pointers after last close 2007-04-23 21:18:53 +02:00
gang.c [POWERPC] spufs: Add infrastructure needed for gang scheduling 2006-10-05 09:21:01 +10:00
hw_ops.c [POWERPC] spufs: Add runcntrl read accessors 2006-12-04 20:40:04 +11:00
inode.c [POWERPC] spufs: clear mapping pointers after last close 2007-04-23 21:18:53 +02:00
Makefile [POWERPC] coredump: Add SPU elf notes to coredump. 2006-12-04 20:40:19 +11:00
run.c [POWERPC] spufs: streamline locking for isolated spu setup 2007-04-23 21:18:54 +02:00
sched.c [POWERPC] spufs: remove woken threads from the runqueue early 2007-04-23 21:18:54 +02:00
spu_restore_crt0.S [PATCH] spufs: add spu-side context switch code 2006-01-09 14:49:25 +11:00
spu_restore_dump.h_shipped [POWERPC] spufs: one more fix for 64k pages 2006-06-21 15:01:32 +10:00
spu_restore.c [PATCH] spufs: add spu-side context switch code 2006-01-09 14:49:25 +11:00
spu_save_crt0.S [PATCH] spufs: add spu-side context switch code 2006-01-09 14:49:25 +11:00
spu_save_dump.h_shipped [POWERPC] spufs: one more fix for 64k pages 2006-06-21 15:01:32 +10:00
spu_save.c [PATCH] spufs: add spu-side context switch code 2006-01-09 14:49:25 +11:00
spu_utils.h [PATCH] spufs: add spu-side context switch code 2006-01-09 14:49:25 +11:00
spufs.h [POWERPC] spufs: streamline locking for isolated spu setup 2007-04-23 21:18:54 +02:00
switch.c [POWERPC] Fix spu SLB invalidations 2007-03-10 00:07:50 +01:00
syscalls.c [PATCH] struct path: convert powerpc 2006-12-08 08:28:48 -08:00