diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2014-11-20 15:42:09 +0530 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2015-06-25 06:00:16 +0530 |
commit | 2576c28e3f623ed401db7e6197241865328620ef (patch) | |
tree | 6bff094ce931e43c18d5887417e07c9defa0af4d /arch/openrisc | |
parent | d57f727264f1425a94689bafc7e99e502cb135b5 (diff) | |
download | op-kernel-dev-2576c28e3f623ed401db7e6197241865328620ef.zip op-kernel-dev-2576c28e3f623ed401db7e6197241865328620ef.tar.gz |
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 'arch/openrisc')
0 files changed, 0 insertions, 0 deletions