aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2015-08-12 05:44:30 -0400
committerIngo Molnar <mingo@kernel.org>2015-08-12 05:44:30 -0400
commitf52609fdabb1c726f8b9fdf64df3161781aa186e (patch)
tree3b7d4a47505eddb097bab848a8ffdc4bbbf79bb7 /arch/parisc
parent20f9ed1568c00bbd9e6af31341d25e06bc3d4a16 (diff)
parent41b9e9fcc1c44b84a785115058ce9c703e3fca6e (diff)
Merge branch 'locking/arch-atomic' into locking/core, because it's ready for upstream
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/parisc')
-rw-r--r--arch/parisc/include/asm/atomic.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/parisc/include/asm/atomic.h b/arch/parisc/include/asm/atomic.h
index 226f8ca993f6..2536965d00ea 100644
--- a/arch/parisc/include/asm/atomic.h
+++ b/arch/parisc/include/asm/atomic.h
@@ -126,6 +126,10 @@ 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
129ATOMIC_OP(and, &=)
130ATOMIC_OP(or, |=)
131ATOMIC_OP(xor, ^=)
132
129#undef ATOMIC_OPS 133#undef ATOMIC_OPS
130#undef ATOMIC_OP_RETURN 134#undef ATOMIC_OP_RETURN
131#undef ATOMIC_OP 135#undef ATOMIC_OP
@@ -185,6 +189,9 @@ static __inline__ s64 atomic64_##op##_return(s64 i, atomic64_t *v) \
185 189
186ATOMIC64_OPS(add, +=) 190ATOMIC64_OPS(add, +=)
187ATOMIC64_OPS(sub, -=) 191ATOMIC64_OPS(sub, -=)
192ATOMIC64_OP(and, &=)
193ATOMIC64_OP(or, |=)
194ATOMIC64_OP(xor, ^=)
188 195
189#undef ATOMIC64_OPS 196#undef ATOMIC64_OPS
190#undef ATOMIC64_OP_RETURN 197#undef ATOMIC64_OP_RETURN