]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0755854c20b5cce6bfbf5ee2e185f27b3971f066
treed142db6cc9ff824d4f0216eb3d6c3d5a4d6b152b
parent200a82167cfe81ec8caacd4bf517b9e482a04d11
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