Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxxxxx> Cc: linux-arch@xxxxxxxxxxxxxxx Cc: linux-kernel@xxxxxxxxxxxxxxx Signed-off-by: Vineet Gupta <vgupta@xxxxxxxxxxxx> --- arch/arc/include/asm/atomic.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arc/include/asm/atomic.h b/arch/arc/include/asm/atomic.h index 03484cb4d16d..fab27dbc562b 100644 --- a/arch/arc/include/asm/atomic.h +++ b/arch/arc/include/asm/atomic.h @@ -141,10 +141,19 @@ static inline int atomic_##op##_return(int i, atomic_t *v) \ ATOMIC_OP(op, c_op, asm_op) \ ATOMIC_OP_RETURN(op, c_op, asm_op) +/* atomic_add(), atomic_add_return() */ ATOMIC_OPS(add, +=, add) + +/* atomic_sub(), atomic_sub_return() */ ATOMIC_OPS(sub, -=, sub) + +/* atomic_and() */ ATOMIC_OP(and, &=, and) +#define ARCH_HAS_ATOMIC_OR +/* atomic_or() */ +ATOMIC_OP(or, |=, or) + #define atomic_clear_mask(mask, v) atomic_and(~(mask), (v)) #undef ATOMIC_OPS -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html