Home
last modified time | relevance | path

Searched hist:"9 d78592ed72dbff1d8825207f8def07858a49768" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/arch/powerpc/platforms/cell/spufs/
H A Dcontext.cdiff 9d78592ed72dbff1d8825207f8def07858a49768 Wed Jul 25 06:31:09 CDT 2007 Christoph Hellwig <hch@lst.de> [POWERPC] spusched: Fix initial timeslice calculation

Currently we calculate the first timeslice for every context
incorrectly - alloc_spu_context calls spu_set_timeslice before we set
ctx->prio so we always calculate the longest possible timeslice for the
lowest possible priority.

This patch makes sure to update the schedule-related fields before
calculating the timeslice and also makes sure we update the timeslice for
a non-running context when entering spu_run so a priority change affects
the context as soon as possible.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
H A Drun.cdiff 9d78592ed72dbff1d8825207f8def07858a49768 Wed Jul 25 06:31:09 CDT 2007 Christoph Hellwig <hch@lst.de> [POWERPC] spusched: Fix initial timeslice calculation

Currently we calculate the first timeslice for every context
incorrectly - alloc_spu_context calls spu_set_timeslice before we set
ctx->prio so we always calculate the longest possible timeslice for the
lowest possible priority.

This patch makes sure to update the schedule-related fields before
calculating the timeslice and also makes sure we update the timeslice for
a non-running context when entering spu_run so a priority change affects
the context as soon as possible.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>