From: Andre Detsch Date: Thu, 4 Sep 2008 21:16:27 +0000 (+0000) Subject: powerpc/spufs: Fix possible scheduling of a context to multiple SPEs X-Git-Tag: v2.6.27-rc6~12^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2e601d14deb2083e2a537b47869ab3895d23a28;p=pandora-kernel.git powerpc/spufs: Fix possible scheduling of a context to multiple SPEs We currently have a race when scheduling a context to a SPE - after we have found a runnable context in spusched_tick, the same context may have been scheduled by spu_activate(). This may result in a panic if we try to unschedule a context that has been freed in the meantime. This change exits spu_schedule() if the context has already been scheduled, so we don't end up scheduling it twice. Signed-off-by: Andre Detsch Signed-off-by: Jeremy Kerr --- Reading git-diff-tree failed