powerpc/spufs: don't extend time time slice if context is not in spu_run
authorLuke Browning <lukebrowning@us.ibm.com>
Fri, 6 Jun 2008 03:26:54 +0000 (11:26 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Wed, 9 Jul 2008 00:13:40 +0000 (10:13 +1000)
commit2442a8ba5abe2c27c572bc522da1c33df98c6ec7
tree0b3f40533af215f2116e024ccfb488d8890c9517
parent46deed69b34d0aa6065e92ad79685e103d4ccd35
powerpc/spufs: don't extend time time slice if context is not in spu_run

An spu context shouldn't get an extra tick if the time slice code
couldn't find something else to run. This means contexts that are not
within spu_run (ie, SPU_SCHED_SPU_RUN is cleared) will not receive
extra ticks while we have no other contexts waiting.

Signed-off-by: Luke Browning <lukebrowning@us.ibm.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
arch/powerpc/platforms/cell/spufs/sched.c