• Paul Burton's avatar
    MIPS: atomic: Use one macro to generate 32b & 64b functions · a38ee6bb
    Paul Burton authored
    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: 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
    a38ee6bb
atomic.h 8.62 KB