]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc9aa34321a4d8b5a4a77f2cb44a88b7c5d734b2e
tree0b3f40533af215f2116e024ccfb488d8890c9517
parent4de1943db51749faf6ab5467d4ad22614d8ffffc
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