arch,sparc: Convert smp_mb__*()
authorPeter Zijlstra <peterz@infradead.org>
Thu, 13 Mar 2014 18:00:35 +0000 (19:00 +0100)
committerIngo Molnar <mingo@kernel.org>
Fri, 18 Apr 2014 12:20:44 +0000 (14:20 +0200)
commit56d3648948c202e8b89cd786a004c451a3eb264f
treeeac45e33ca2a33df0001c5162272ec0265e0daa8
parent603228bcb8da90f8f8a5cdd8de74178f6c3e7e13
arch,sparc: Convert smp_mb__*()

sparc32: fully relies on asm-generic/barrier.h and thus can use its
 implementation.

sparc64: is strongly ordered and its atomic ops imply a full barrier,
 implement the new primitives using barrier().

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: David S. Miller <davem@davemloft.net>
Link: http://lkml.kernel.org/n/tip-2cla9ubpd8chrntnm7e4zdt4@git.kernel.org
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Will Deacon <will.deacon@arm.com>
Cc: linux-kernel@vger.kernel.org
Cc: sparclinux@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/sparc/include/asm/atomic_32.h
arch/sparc/include/asm/atomic_64.h
arch/sparc/include/asm/barrier_64.h
arch/sparc/include/asm/bitops_32.h
arch/sparc/include/asm/bitops_64.h