[POWERPC] spusched: Fix runqueue corruption
authorChristoph Hellwig <hch@lst.de>
Fri, 29 Jun 2007 00:58:06 +0000 (10:58 +1000)
committerPaul Mackerras <paulus@samba.org>
Tue, 3 Jul 2007 05:24:46 +0000 (15:24 +1000)
commit27449971e6907ff38bde7bbc4647e55bd7309fc3
treed1fb5cf5e5a93eea27dada901623b02bf9a01e02
parentc77239b8be74f775142d9dd01041e2ce864ba20d
[POWERPC] spusched: Fix runqueue corruption

spu_activate can be called from multiple threads at the same time on
behalf of the same spu context.  We need to make sure to only add it
once to avoid runqueue corruption.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/spufs/sched.c