From: Christoph Hellwig Date: Wed, 25 Jul 2007 11:31:09 +0000 (+1000) Subject: [POWERPC] spusched: Fix initial timeslice calculation X-Git-Tag: v2.6.23-rc2~190^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d78592ed72dbff1d8825207f8def07858a49768;p=pandora-kernel.git [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 Signed-off-by: Jeremy Kerr Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed