linux/arch/arc/include
Vineet Gupta e965e3a11b ARC: add smp barriers around atomics per Documentation/atomic_ops.txt
[ Upstream commit 2576c28e3f ]

 - 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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
History 2015-07-05 10:12:50 -04:00
..
asm ARC: add smp barriers around atomics per Documentation/atomic_ops.txt 2015-07-05 10:12:50 -04:00
uapi/asm ARC: Implement ptrace(PTRACE_GET_THREAD_AREA) 2014-06-26 10:14:08 +05:30