]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: atomic: Use one macro to generate 32b & 64b functions
authorPaul Burton <paul.burton@mips.com>
Tue, 1 Oct 2019 21:53:18 +0000 (21:53 +0000)
committerPaul Burton <paul.burton@mips.com>
Mon, 7 Oct 2019 16:42:29 +0000 (09:42 -0700)
commit63ff2789c8a82ef0d68478ec829b9131dbe3dd64
tree96dcc0c4d67b9079b33878e6c032daf2b8a97e6c
parent446e78f6383e3e6191f75608797122ef19199ca0
MIPS: atomic: Use one macro to generate 32b & 64b functions

Cut down on duplication by generalizing the ATOMIC_OP(),
ATOMIC_OP_RETURN() & ATOMIC_FETCH_OP() macros to work for both 32b &
64b atomics, and removing the ATOMIC64_ variants. This ensures
consistency between our atomic_* & atomic64_* functions.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@vger.kernel.org
Cc: Huacai Chen <chenhc@lemote.com>
Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: linux-kernel@vger.kernel.org
arch/mips/include/asm/atomic.h