From: Jeremy Kerr Date: Tue, 11 Mar 2008 01:46:18 +0000 (+1100) Subject: [POWERPC] spufs: fix rescheduling of non-runnable contexts X-Git-Tag: v2.6.25-rc6~30^2~11^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c368392a9951e6e25e2e2f9268153f1e9365e2c2;p=pandora-kernel.git [POWERPC] spufs: fix rescheduling of non-runnable contexts At present, we can hit the BUG_ON in __spu_update_sched_info by reading the regs file of a context between two calls to spu_run. The spu_release_saved called by spufs_regs_read() is resulting in the (now non-runnable) context being placed back on the run queue, so the next call to spu_run ends up in the bug condition. This change uses the SPU_SCHED_SPU_RUN flag to only reschedule a context if it's still in spu_run(). Signed-off-by: Jeremy Kerr --- Reading git-diff-tree failed