]> git.baikalelectronics.ru Git - kernel.git/commit
compiler.h: Split {READ,WRITE}_ONCE definitions out into rwonce.h
authorWill Deacon <will@kernel.org>
Tue, 15 Oct 2019 23:29:32 +0000 (16:29 -0700)
committerWill Deacon <will@kernel.org>
Tue, 21 Jul 2020 09:50:35 +0000 (10:50 +0100)
commit2b90128994b9c896c8ff08904f6401b5acf202e5
tree3ed1c29d46b626eb36ffd8f055e0b74c864e31ab
parent75f6c2e60aeb1abc10cd9202a08e5bc4e3e3d8a8
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>
include/asm-generic/Kbuild
include/asm-generic/barrier.h
include/asm-generic/rwonce.h [new file with mode: 0644]
include/linux/compiler.h