[Cbe-oss-dev] [PATCH 2/2] spu sched: static timeslicing for SCHED_RR contexts

Christoph Hellwig hch at lst.de
Sat Feb 10 07:03:53 EST 2007


On Fri, Feb 09, 2007 at 07:10:54PM +0100, Christoph Hellwig wrote:
> Note that right now we only do the time slicing for SCHED_RR tasks.
> The code would work for SCHED_OTHER tasks aswell, but their prio
> value is defered from the one the PPU thread has at time of spu_run,
> and using this for spu scheduling decisions would make the code very
> unfair.  SCHED_OTHER support will be enabled once we the spu scheduler
> knows how to calculcate cpu_context.prio (very soon)

Btw, I think there's an easy way to do simple static timeslicing
for SCHED_OTHER aswell - we just need to use ->static_prio instead
of ->prio for our calculations.



More information about the cbe-oss-dev mailing list