powerpc/atomics: Remove atomic_inc()/atomic_dec() and friends
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 21 Sep 2021 15:09:49 +0000 (17:09 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 30 Nov 2021 00:45:57 +0000 (11:45 +1100)
commitf05cab0034babaa9b3dfaf6003ee6493496a8180
treed142db6cc9ff824d4f0216eb3d6c3d5a4d6b152b
parent41d65207de9fbff58acd8937a7c3f8940c186a87
powerpc/atomics: Remove atomic_inc()/atomic_dec() and friends

Now that atomic_add() and atomic_sub() handle immediate operands,
atomic_inc() and atomic_dec() have no added value compared to the
generic fallback which calls atomic_add(1) and atomic_sub(1).

Also remove atomic_inc_not_zero() which fallsback to
atomic_add_unless() which itself fallsback to
atomic_fetch_add_unless() which now handles immediate operands.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/0bc64a2f18726055093dbb2e479cefc60a409cfd.1632236981.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/atomic.h