• Paul Burton's avatar
    MIPS: bitops: Avoid redundant zero-comparison for non-LLSC · aad028ca
    Paul Burton authored
    The IRQ-disabling non-LLSC fallbacks for bitops on UP systems already
    return a zero or one, so there's no need to perform another comparison
    against zero. Move these comparisons into the LLSC paths to avoid the
    redundant work.
    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
    aad028ca
bitops.h 14.3 KB