linux/arch/powerpc/platforms/cell/spufs
Christoph Hellwig 2eb1b12049 [POWERPC] spu sched: static timeslicing for SCHED_RR contexts
For SCHED_RR tasks we can do some really trivial timeslicing.  Basically
we fire up a time for every scheduler tick that searches for a higher
or same priority thread that is on the runqueue and if there is one
context switches to it.  Because we can't lock spus from timer context
we actually run this from a delayed runqueue instead of a timer.

A nice optimization would be to skip the actual priority bitmap search
when there are less contexts than physical spus available.  To implement
this I need a so far unpublished patch from Andre, and it will be added
after we have that patch in.

Note that right now we only do the time slicing for SCHED_RR tasks.
The code would work for SCHED_OTHER tasks aswell, but their prio
value is defered from the one the PPU thread has at time of spu_run,
and using this for spu scheduling decisions would make the code very
unfair.  SCHED_OTHER support will be enabled once we the spu scheduler
knows how to calculcate cpu_context.prio (very soon)

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
2007-02-13 21:55:43 +01:00
..
backing_ops.c [POWERPC] spufs: Add runcntrl read accessors 2006-12-04 20:40:04 +11:00
context.c [POWERPC] spu sched: static timeslicing for SCHED_RR contexts 2007-02-13 21:55:43 +01:00
coredump.c [POWERPC] Fix SPU coredump code for max_fdset removal 2006-12-11 15:13:37 +11:00
file.c [POWERPC] spufs: optimize spu_run 2007-02-13 21:55:41 +01: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 [PATCH] mark struct inode_operations const 1 2007-02-12 09:48:46 -08:00
Makefile [POWERPC] coredump: Add SPU elf notes to coredump. 2006-12-04 20:40:19 +11:00
run.c [POWERPC] spu sched: static timeslicing for SCHED_RR contexts 2007-02-13 21:55:43 +01:00
sched.c [POWERPC] spu sched: static timeslicing for SCHED_RR contexts 2007-02-13 21:55:43 +01:00
spu_restore.c [PATCH] spufs: add spu-side context switch code 2006-01-09 14:49:25 +11: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_save.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_utils.h [PATCH] spufs: add spu-side context switch code 2006-01-09 14:49:25 +11:00
spufs.h [POWERPC] spu sched: static timeslicing for SCHED_RR contexts 2007-02-13 21:55:43 +01:00
switch.c [POWERPC] spufs: "stautus" isnt a word. 2006-10-25 14:20:21 +10:00
syscalls.c [PATCH] struct path: convert powerpc 2006-12-08 08:28:48 -08:00