]> err.no Git - linux-2.6/commit
[POWERPC] spufs: Don't call spu_run_init from spu_reacquire_runnable
authorAndre Detsch <adetsch@br.ibm.com>
Tue, 21 Aug 2007 02:06:22 +0000 (10:06 +0800)
committerPaul Mackerras <paulus@samba.org>
Thu, 30 Aug 2007 06:27:18 +0000 (16:27 +1000)
commitada83daab31c3ec35845785482124373a62f430c
tree3efd34d60cc2f38ecb6b80bf8861c8eb544cf8ef
parent62ee68e3bcb0d056aae5b36dea0388ca25572cdf
[POWERPC] spufs: Don't call spu_run_init from spu_reacquire_runnable

This fixes a major bug which was happening when a SPU thread advances
its execution right after being restored to a SPU.  A potentially
outdated NPC value was being (re)written to the SPU.

So, spu_run_init, in this case, was either not doing anything relevant,
or breaking the execution of the SPU thread.

This fixes a common problem of losing a mailbox write when it was done
to a saved context.

Signed-off-by: Andre Detsch <adetsch@br.ibm.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/spufs/run.c