locking/xchg/alpha: Clean up barrier usage by using smp_mb() in place of __ASM__MB
authorAndrea Parri <parri.andrea@gmail.com>
Thu, 22 Feb 2018 09:24:29 +0000 (10:24 +0100)
committerIngo Molnar <mingo@kernel.org>
Fri, 23 Feb 2018 07:38:15 +0000 (08:38 +0100)
commit79d442461df7478cdd0c50d9b8a76f431f150fa3
tree53ec8c34409ef60806faae9ee2bdff17c301875f
parentcb13b424e986aed68d74cbaec3449ea23c50e167
locking/xchg/alpha: Clean up barrier usage by using smp_mb() in place of __ASM__MB

Replace each occurrence of __ASM__MB with a (trailing) smp_mb() in
xchg(), cmpxchg(), and remove the now unused __ASM__MB definitions;
this improves readability, with no additional synchronization cost.

Suggested-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Andrea Parri <parri.andrea@gmail.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Matt Turner <mattst88@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-alpha@vger.kernel.org
Link: http://lkml.kernel.org/r/1519291469-5702-1-git-send-email-parri.andrea@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/alpha/include/asm/cmpxchg.h
arch/alpha/include/asm/xchg.h