locking/atomic: cmpxchg: make `generic` a prefix
authorMark Rutland <mark.rutland@arm.com>
Tue, 25 May 2021 14:02:10 +0000 (15:02 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 26 May 2021 11:20:50 +0000 (13:20 +0200)
commit6988631bdfddcedc1d27f83723ea36a442f00ea1
tree84c188bb30795fb4c3c4b295cc781121914630cc
parent1bdadf46eff6804ace5fa46b6856da4799f12b5c
locking/atomic: cmpxchg: make `generic` a prefix

The asm-generic implementations of cmpxchg_local() and cmpxchg64_local()
use a `_generic` suffix to distinguish themselves from arch code or
wrappers used elsewhere.

Subsequent patches will add ARCH_ATOMIC support to these
implementations, and will distinguish more functions with a `generic`
portion. To align with how ARCH_ATOMIC uses an `arch_` prefix, it would
be helpful to use a `generic_` prefix rather than a `_generic` suffix.

In preparation for this, this patch renames the existing functions to
make `generic` a prefix rather than a suffix. There should be no
functional change as a result of this patch.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Arnd Bergmann <arnd@arndb.de>
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-12-mark.rutland@arm.com
arch/arm/include/asm/cmpxchg.h
arch/m68k/include/asm/cmpxchg.h
arch/mips/include/asm/cmpxchg.h
arch/parisc/include/asm/cmpxchg.h
arch/powerpc/include/asm/cmpxchg.h
arch/sparc/include/asm/cmpxchg_32.h
arch/sparc/include/asm/cmpxchg_64.h
arch/xtensa/include/asm/cmpxchg.h
include/asm-generic/cmpxchg-local.h
include/asm-generic/cmpxchg.h