• Paul Burton's avatar
    MIPS: atomic: Handle !kernel_uses_llsc first · 9537db24
    Paul Burton authored
    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: default avatarPaul 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
    9537db24
atomic.h 11.4 KB