Skip to content
Commit c0bace5c authored by Jeremy Kerr's avatar Jeremy Kerr
Browse files

[POWERPC] spufs: update master runcntl with context lock held



Currently, we update the SPU master run control bit (ie,
spu_enable_spu) in spufs_run_spu before we grab the context mutex. This
can result in races with other processes accessing this context's
resources.

This change moves the spu_enable_spu to after we have acquired the
context lock.

Signed-off-by: default avatarJeremy Kerr <jk@ozlabs.org>
parent 55d7cd74
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment