MIPS: atomic: Handle !kernel_uses_llsc first
authorPaul Burton <paul.burton@mips.com>
Tue, 1 Oct 2019 21:53:16 +0000 (21:53 +0000)
committerPaul Burton <paul.burton@mips.com>
Mon, 7 Oct 2019 16:42:27 +0000 (09:42 -0700)
commit9537db24c65aeb71718916272687b0d00d3e0821
tree183c4a006af8b39da82c163bceea234dfdeea714
parent36d3295c5a0d9169bae1d40f8db92459977c2936
MIPS: atomic: Handle !kernel_uses_llsc first

Handle the !kernel_uses_llsc path first in our ATOMIC_OP(),
ATOMIC_OP_RETURN() & ATOMIC_FETCH_OP() macros & return from within the
block. This allows us to de-indent the kernel_uses_llsc path by one
level which will be useful when making further changes.

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