summaryrefslogtreecommitdiff
path: root/include/asm-generic/barrier.h
diff options
context:
space:
mode:
authorWill Deacon <will@kernel.org>2019-10-16 02:29:32 +0300
committerWill Deacon <will@kernel.org>2020-07-21 12:50:35 +0300
commite506ea451254ab17e0bf918ca36232fec2a9b10c (patch)
tree3ed1c29d46b626eb36ffd8f055e0b74c864e31ab /include/asm-generic/barrier.h
parentf143c11bb7b924403ea2d5b5c990717772293620 (diff)
downloadlinux-e506ea451254ab17e0bf918ca36232fec2a9b10c.tar.xz
compiler.h: Split {READ,WRITE}_ONCE definitions out into rwonce.h
In preparation for allowing architectures to define their own implementation of the READ_ONCE() macro, move the generic {READ,WRITE}_ONCE() definitions out of the unwieldy 'linux/compiler.h' file and into a new 'rwonce.h' header under 'asm-generic'. Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Paul E. McKenney <paulmck@kernel.org> Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'include/asm-generic/barrier.h')
-rw-r--r--include/asm-generic/barrier.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-generic/barrier.h b/include/asm-generic/barrier.h
index 2eacaf7d62f6..8116744bb82c 100644
--- a/include/asm-generic/barrier.h
+++ b/include/asm-generic/barrier.h
@@ -13,7 +13,7 @@
#ifndef __ASSEMBLY__
-#include <linux/compiler.h>
+#include <asm/rwonce.h>
#ifndef nop
#define nop() asm volatile ("nop")