[POWERPC] spusched: fix cpu/node binding
commitea1ae5949d7fcd2e622226ba71741a0f43b6ef0a
authorChristoph Hellwig <hch@lst.de>
Fri, 29 Jun 2007 00:57:56 +0000 (29 10:57 +1000)
committerPaul Mackerras <paulus@samba.org>
Tue, 3 Jul 2007 05:24:45 +0000 (3 15:24 +1000)
tree869e76ffe14b24f0d3aa92f9d6ed267a3326cc08
parent2cf2b3b49f10d2f4a0703070fc54ce1cd84a6cda
[POWERPC] spusched: fix cpu/node binding

Add a cpus_allowed allowed filed to struct spu_context so that we always
use the cpu mask of the owning thread instead of the one happening to
call into the scheduler.  Also use this information in
grab_runnable_context to avoid spurious wakeups.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/spufs/context.c
arch/powerpc/platforms/cell/spufs/sched.c
arch/powerpc/platforms/cell/spufs/spufs.h