From: Luke Browning Date: Fri, 25 Apr 2008 04:00:00 +0000 (+1000) Subject: [POWERPC] spufs: set SPU_CONTEXT_SWITCH_PENDING before synchronising SPU irqs X-Git-Tag: v2.6.26-rc2~16^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=093c16bf9b107433643cbf0843ca7808df90823b;p=pandora-kernel.git [POWERPC] spufs: set SPU_CONTEXT_SWITCH_PENDING before synchronising SPU irqs synchronize_irq() provides the serialization for SPU_CONTEXT_SWITCH_PENDING which is read with a simple load. This routine guarantees that the relevant interrupt handlers are not running, so that the next time they do run they will see the update memory value. This must be done correctly so that exception handling code does not restart the mfc in the middle of a context switch while we are trying to atomically stop it and save state. Signed-off-by: Luke Browning Signed-off-by: Jeremy Kerr --- Reading git-diff-tree failed