aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/asm-generic/barrier.h
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2014-11-20 15:42:09 +0530
committerVineet Gupta <vgupta@synopsys.com>2015-06-25 06:00:16 +0530
commit2576c28e3f623ed401db7e6197241865328620ef (patch)
tree6bff094ce931e43c18d5887417e07c9defa0af4d /include/asm-generic/barrier.h
parentARC: add compiler barrier to LLSC based cmpxchg (diff)
downloadwireguard-linux-2576c28e3f623ed401db7e6197241865328620ef.tar.xz
wireguard-linux-2576c28e3f623ed401db7e6197241865328620ef.zip
ARC: add smp barriers around atomics per Documentation/atomic_ops.txt
- arch_spin_lock/unlock were lacking the ACQUIRE/RELEASE barriers Since ARCv2 only provides load/load, store/store and all/all, we need the full barrier - LLOCK/SCOND based atomics, bitops, cmpxchg, which return modified values were lacking the explicit smp barriers. - Non LLOCK/SCOND varaints don't need the explicit barriers since that is implicity provided by the spin locks used to implement the critical section (the spin lock barriers in turn are also fixed in this commit as explained above Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: stable@vger.kernel.org Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'include/asm-generic/barrier.h')
0 files changed, 0 insertions, 0 deletions