Loading include/asm-generic/atomic.h +10 −2 Original line number Diff line number Diff line Loading @@ -98,14 +98,22 @@ ATOMIC_OP_RETURN(add, +) ATOMIC_OP_RETURN(sub, -) #endif #ifndef atomic_clear_mask #ifndef atomic_and ATOMIC_OP(and, &) #endif #ifndef atomic_clear_mask #define atomic_clear_mask(i, v) atomic_and(~(i), (v)) #endif #ifndef atomic_set_mask #ifndef atomic_or #ifndef CONFIG_ARCH_HAS_ATOMIC_OR #define CONFIG_ARCH_HAS_ATOMIC_OR #endif ATOMIC_OP(or, |) #endif #ifndef atomic_set_mask #define atomic_set_mask(i, v) atomic_or((i), (v)) #endif Loading Loading
include/asm-generic/atomic.h +10 −2 Original line number Diff line number Diff line Loading @@ -98,14 +98,22 @@ ATOMIC_OP_RETURN(add, +) ATOMIC_OP_RETURN(sub, -) #endif #ifndef atomic_clear_mask #ifndef atomic_and ATOMIC_OP(and, &) #endif #ifndef atomic_clear_mask #define atomic_clear_mask(i, v) atomic_and(~(i), (v)) #endif #ifndef atomic_set_mask #ifndef atomic_or #ifndef CONFIG_ARCH_HAS_ATOMIC_OR #define CONFIG_ARCH_HAS_ATOMIC_OR #endif ATOMIC_OP(or, |) #endif #ifndef atomic_set_mask #define atomic_set_mask(i, v) atomic_or((i), (v)) #endif Loading