powerpc/spufs: Improve search of node for contexts with SPU affinity
authorAndre Detsch <adetsch@br.ibm.com>
Tue, 21 Oct 2008 00:15:23 +0000 (11:15 +1100)
committerJeremy Kerr <jk@ozlabs.org>
Tue, 21 Oct 2008 00:15:23 +0000 (11:15 +1100)
This patch improves redability of the code responsible for trying to find
a node with enough SPUs not committed to other affinity gangs.

An additional check is also added, to avoid taking into account gangs that
have no SPU affinity.

Signed-off-by: Andre Detsch <adetsch@br.ibm.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>

No differences found