diff options
author | Peter Zijlstra <peterz@infradead.org> | 2014-04-23 13:32:50 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2015-07-27 08:06:24 -0400 |
commit | e6942b7de2dfe44ebde9bae57dadece5abca9de8 (patch) | |
tree | b235317c5f6d200bcc25b43a406237a0d15319cf /arch/m32r | |
parent | 2957c035395e492463d7f589af9dd32388967bbb (diff) |
atomic: Provide atomic_{or,xor,and}
Implement atomic logic ops -- atomic_{or,xor,and}.
These will replace the atomic_{set,clear}_mask functions that are
available on some archs.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/m32r')
-rw-r--r-- | arch/m32r/include/asm/atomic.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/m32r/include/asm/atomic.h b/arch/m32r/include/asm/atomic.h index 7245463c1e98..b2a13fbd5be0 100644 --- a/arch/m32r/include/asm/atomic.h +++ b/arch/m32r/include/asm/atomic.h | |||
@@ -94,8 +94,6 @@ static __inline__ int atomic_##op##_return(int i, atomic_t *v) \ | |||
94 | ATOMIC_OPS(add) | 94 | ATOMIC_OPS(add) |
95 | ATOMIC_OPS(sub) | 95 | ATOMIC_OPS(sub) |
96 | 96 | ||
97 | #define CONFIG_ARCH_HAS_ATOMIC_OR | ||
98 | |||
99 | ATOMIC_OP(and) | 97 | ATOMIC_OP(and) |
100 | ATOMIC_OP(or) | 98 | ATOMIC_OP(or) |
101 | ATOMIC_OP(xor) | 99 | ATOMIC_OP(xor) |