summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2014-08-07 05:36:18 (GMT)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-08-13 05:13:27 (GMT)
commit78e05b1421fa41ae8457701140933baa5e7d9479 (patch)
treeddd3d45946163cdc5f5836d2e460b9b4f4dd24c2 /scripts
parent51d7d5205d3389a32859f9939f1093f267409929 (diff)
downloadlinux-78e05b1421fa41ae8457701140933baa5e7d9479.tar.xz
powerpc: Add smp_mb()s to arch_spin_unlock_wait()
Similar to the previous commit which described why we need to add a barrier to arch_spin_is_locked(), we have a similar problem with spin_unlock_wait(). We need a barrier on entry to ensure any spinlock we have previously taken is visibly locked prior to the load of lock->slock. It's also not clear if spin_unlock_wait() is intended to have ACQUIRE semantics. For now be conservative and add a barrier on exit to give it ACQUIRE semantics. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions