summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/cell/spufs/sched.c
diff options
context:
space:
mode:
authorLuke Browning2008-04-25 06:00:00 +0200
committerJeremy Kerr2008-05-05 05:33:43 +0200
commit093c16bf9b107433643cbf0843ca7808df90823b (patch)
tree1776b417f366894e9fde4d58f456e3fef6697890 /arch/powerpc/platforms/cell/spufs/sched.c
parent[POWERPC] spufs: don't acquire state_mutex interruptible while performing cal... (diff)
downloadkernel-qcow2-linux-093c16bf9b107433643cbf0843ca7808df90823b.tar.gz
kernel-qcow2-linux-093c16bf9b107433643cbf0843ca7808df90823b.tar.xz
kernel-qcow2-linux-093c16bf9b107433643cbf0843ca7808df90823b.zip
[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 <lukebr@linux.vnet.ibm.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'arch/powerpc/platforms/cell/spufs/sched.c')
0 files changed, 0 insertions, 0 deletions