]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] spusched: fix cpu/node binding
authorChristoph Hellwig <hch@lst.de>
Fri, 29 Jun 2007 00:57:56 +0000 (10:57 +1000)
committerPaul Mackerras <paulus@samba.org>
Tue, 3 Jul 2007 05:24:45 +0000 (15:24 +1000)
commit1e5f8827a675ac696288b471075ebcfafd88e730
tree869e76ffe14b24f0d3aa92f9d6ed267a3326cc08
parentcde75781e9e8180c9ea83af3243eba5514234b75
[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