• Paul Burton's avatar
    MIPS: bitops: Abstract LL/SC loops · cc99987c
    Paul Burton authored
    Introduce __bit_op() & __test_bit_op() macros which abstract away the
    implementation of LL/SC loops. This cuts down on a lot of duplicate
    boilerplate code, and also allows R10000_LLSC_WAR to be handled outside
    of the individual bitop functions.
    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
    cc99987c
bitops.h 10.8 KB