include/asm-generic/rwonce.h
0 → 100644
+101
−0
+2
−91
Loading
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>