diff options
author | Mark Rutland <mark.rutland@arm.com> | 2021-05-25 16:02:02 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2021-05-26 13:20:49 +0200 |
commit | c7178cdecdbef8321f418fac55f3afaca3bb4c96 (patch) | |
tree | 24342a283c43466628890a991fe3f58913e7bfb6 /arch/h8300/include/asm/Kbuild | |
parent | locking/atomic: net: use linux/atomic.h for xchg & cmpxchg (diff) | |
download | linux-c7178cdecdbef8321f418fac55f3afaca3bb4c96.tar.xz linux-c7178cdecdbef8321f418fac55f3afaca3bb4c96.zip |
locking/atomic: h8300: use asm-generic exclusively
As h8300's implementation of the atomics isn't using any arch-specific
functionality, and its implementation of cmpxchg only uses assembly to
non-atomically swap two elements in memory, we may as well use the
asm-generic atomic.h and cmpxchg.h, and avoid the duplicate code.
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>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20210525140232.53872-4-mark.rutland@arm.com
Diffstat (limited to 'arch/h8300/include/asm/Kbuild')
-rw-r--r-- | arch/h8300/include/asm/Kbuild | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/h8300/include/asm/Kbuild b/arch/h8300/include/asm/Kbuild index 60ee7f0d60a8..e23139c8fc0d 100644 --- a/arch/h8300/include/asm/Kbuild +++ b/arch/h8300/include/asm/Kbuild @@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 generic-y += asm-offsets.h +generic-y += cmpxchg.h generic-y += extable.h generic-y += kvm_para.h generic-y += mcs_spinlock.h |