[POWERPC] spufs: remove woken threads from the runqueue early
commita475c2f43520cb095452201da57395000cfeb94c
authorChristoph Hellwig <hch@lst.de>
Mon, 23 Apr 2007 19:08:11 +0000 (23 21:08 +0200)
committerArnd Bergmann <arnd@klappe.arndb.de>
Mon, 23 Apr 2007 19:18:54 +0000 (23 21:18 +0200)
tree0cfe49111b15cf20b03d308ec8b5a8b5210b0363
parent390c53430498c9973e015432806edd53b2efe6c6
[POWERPC] spufs: remove woken threads from the runqueue early

A single context should only be woken once, and we should not have
more wakeups for a given priority than the number of contexts on
that runqueue position.

Also add some asserts to trap future problems in this area more
easily.

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