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)
commit10baa26c8ccba6f100397c9ba6534be175762e8d
treea909c5246f40932848858c8ed72894fd58732fb1
parent837ef884b702edd1c4514eaed1dbecd48721bd22
powerpc/spufs: Improve search of node for contexts with SPU affinity

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>
arch/powerpc/platforms/cell/spufs/sched.c