locking/atomic: make ARCH_ATOMIC a Kconfig symbol
authorMark Rutland <mark.rutland@arm.com>
Tue, 25 May 2021 14:02:00 +0000 (15:02 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 26 May 2021 11:20:49 +0000 (13:20 +0200)
commit9be85de97786a75f62080de1c0c13656f65cba84
treefda5463211f1e92135081ba872293f7ebad868e4
parenta82adc7650044b5555d65078bda07866efa4a73d
locking/atomic: make ARCH_ATOMIC a Kconfig symbol

Subsequent patches will move architectures over to the ARCH_ATOMIC API,
after preparing the asm-generic atomic implementations to function with
or without ARCH_ATOMIC.

As some architectures use the asm-generic implementations exclusively
(and don't have a local atomic.h), and to avoid the risk that
ARCH_ATOMIC isn't defined in some cases we expect, let's make the
ARCH_ATOMIC macro a Kconfig symbol instead, so that we can guarantee it
is consistently available where needed.

There should be no functional change as a result of this patch.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Boqun Feng <boqun.feng@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20210525140232.53872-2-mark.rutland@arm.com
arch/Kconfig
arch/arm64/Kconfig
arch/arm64/include/asm/atomic.h
arch/s390/Kconfig
arch/s390/include/asm/atomic.h
arch/um/Kconfig
arch/x86/Kconfig
arch/x86/include/asm/atomic.h
include/linux/atomic.h