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)
commita38ee6bb14a41b6849576bcf6cbd33cbbe5c3a7d
tree96dcc0c4d67b9079b33878e6c032daf2b8a97e6c
parent9537db24c65aeb71718916272687b0d00d3e0821
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