]> err.no Git - linux-2.6/commit
[POWERPC] spu sched: make addition to stop_wq and runque atomic vs wakeup
authorLuke Browning <lukebrowning@us.ibm.com>
Mon, 23 Apr 2007 19:08:13 +0000 (21:08 +0200)
committerArnd Bergmann <arnd@klappe.arndb.de>
Mon, 23 Apr 2007 19:18:55 +0000 (21:18 +0200)
commit4e0f4ed0df71013290cd2a01f7b84264f7b99678
tree7fd056227ddce717269b653c563179b5b7c7b88d
parent7ec18ab923a2e377ecb05c74a2d38f457f79950f
[POWERPC] spu sched: make addition to stop_wq and runque atomic vs wakeup

Addition to stop_wq needs to happen before adding to the runqeueue and
under the same lock so that we don't have a race window for a lost
wake up in the spu scheduler.

Signed-off-by: Luke Browning <lukebrowning@us.ibm.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
arch/powerpc/platforms/cell/spufs/sched.c