locking/arch: Add WRITE_ONCE() to set_mb()
authorPeter Zijlstra <peterz@infradead.org>
Tue, 12 May 2015 08:52:27 +0000 (10:52 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 May 2015 06:31:59 +0000 (08:31 +0200)
commitab3f02fc237211f0583c1e7ba3bf504747be9b8d
treec859733055aed0ba98fcd4e6d3f160a86deb7d8c
parent6ce47fd961fa8fb206433789d7754c73cab3b5d0
locking/arch: Add WRITE_ONCE() to set_mb()

Since we assume set_mb() to result in a single store followed by a
full memory barrier, employ WRITE_ONCE().

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
12 files changed:
arch/arm/include/asm/barrier.h
arch/arm64/include/asm/barrier.h
arch/ia64/include/asm/barrier.h
arch/metag/include/asm/barrier.h
arch/mips/include/asm/barrier.h
arch/powerpc/include/asm/barrier.h
arch/s390/include/asm/barrier.h
arch/sparc/include/asm/barrier_64.h
arch/x86/include/asm/barrier.h
arch/x86/um/asm/barrier.h
include/asm-generic/barrier.h
include/linux/compiler.h