[POWERPC] spu sched: forced preemption at execution
authorChristoph Hellwig <hch@lst.de>
Tue, 13 Feb 2007 20:54:27 +0000 (21:54 +0100)
committerArnd Bergmann <arnd@klappe.arndb.de>
Tue, 13 Feb 2007 20:55:42 +0000 (21:55 +0100)
commit52f04fcf66a5d5d90790d6cfde52e391ecf2b882
tree1fe7e3220964ddff413975fd76fde0e7fcb4fd95
parentae7b4c5284d11d49ed9432c16505fcbeb8d3b8cf
[POWERPC] spu sched: forced preemption at execution

If we start a spu context with realtime priority we want it to run
immediately and not wait until some other lower priority thread has
finished.  Try to find a suitable victim and use it's spu in this
case.

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