locking/atomic: h8300: use asm-generic exclusively
authorMark Rutland <mark.rutland@arm.com>
Tue, 25 May 2021 14:02:02 +0000 (15:02 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 26 May 2021 11:20:49 +0000 (13:20 +0200)
commitc7178cdecdbef8321f418fac55f3afaca3bb4c96
tree24342a283c43466628890a991fe3f58913e7bfb6
parent201e2c1bbe659720913ed5272a2c44e6ab646c8a
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
arch/h8300/include/asm/Kbuild
arch/h8300/include/asm/atomic.h [deleted file]
arch/h8300/include/asm/cmpxchg.h [deleted file]