]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit926dc62efc9963de7029e855ef80ae424a218cce
treec859733055aed0ba98fcd4e6d3f160a86deb7d8c
parent68a70e7ac44f338ea398684ea19b057aba713dad
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