aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2014-04-23 13:32:50 -0400
committerThomas Gleixner <tglx@linutronix.de>2015-07-27 08:06:24 -0400
commite6942b7de2dfe44ebde9bae57dadece5abca9de8 (patch)
treeb235317c5f6d200bcc25b43a406237a0d15319cf /arch/parisc
parent2957c035395e492463d7f589af9dd32388967bbb (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/parisc')
-rw-r--r--arch/parisc/include/asm/atomic.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/parisc/include/asm/atomic.h b/arch/parisc/include/asm/atomic.h
index be2c50ddebd6..2536965d00ea 100644
--- a/arch/parisc/include/asm/atomic.h
+++ b/arch/parisc/include/asm/atomic.h
@@ -126,8 +126,6 @@ static __inline__ int atomic_##op##_return(int i, atomic_t *v) \
126ATOMIC_OPS(add, +=) 126ATOMIC_OPS(add, +=)
127ATOMIC_OPS(sub, -=) 127ATOMIC_OPS(sub, -=)
128 128
129#define CONFIG_ARCH_HAS_ATOMIC_OR
130
131ATOMIC_OP(and, &=) 129ATOMIC_OP(and, &=)
132ATOMIC_OP(or, |=) 130ATOMIC_OP(or, |=)
133ATOMIC_OP(xor, ^=) 131ATOMIC_OP(xor, ^=)