]> git.ipfire.org Git - thirdparty/linux.git/commit
locking/atomic: hexagon: remove redundant arch_atomic_cmpxchg
authorMark Rutland <mark.rutland@arm.com>
Mon, 5 Jun 2023 07:01:00 +0000 (08:01 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 5 Jun 2023 07:57:13 +0000 (09:57 +0200)
commita7bafa7969da1c0e9c342c792d8224078d1c491c
tree6bc8363a7e055e935ecd6b5e55c793581de871b6
parent14d72d4b6f0e88b5f683c1a5b7a876a55055852d
locking/atomic: hexagon: remove redundant arch_atomic_cmpxchg

Hexagon's implementation of arch_atomic_cmpxchg() is identical to its
implementation of arch_cmpxchg(). Have it define arch_atomic_cmpxchg()
in terms of arch_cmpxchg(), matching what it does for arch_atomic_xchg()
and arch_xchg().

At the same time, remove the kerneldoc comments for hexagon's
arch_atomic_xchg() and arch_atomic_cmpxchg(). The arch_atomic_*()
namespace is shared by all architectures and the API should be
documented centrally, and the comments aren't all that helpful as-is.

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

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20230605070124.3741859-4-mark.rutland@arm.com
arch/hexagon/include/asm/atomic.h