diff options
author | Ingo Molnar <mingo@kernel.org> | 2015-08-12 05:44:30 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-08-12 05:44:30 -0400 |
commit | f52609fdabb1c726f8b9fdf64df3161781aa186e (patch) | |
tree | 3b7d4a47505eddb097bab848a8ffdc4bbbf79bb7 /arch/parisc | |
parent | 20f9ed1568c00bbd9e6af31341d25e06bc3d4a16 (diff) | |
parent | 41b9e9fcc1c44b84a785115058ce9c703e3fca6e (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.h | 7 |
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) \ | |||
126 | ATOMIC_OPS(add, +=) | 126 | ATOMIC_OPS(add, +=) |
127 | ATOMIC_OPS(sub, -=) | 127 | ATOMIC_OPS(sub, -=) |
128 | 128 | ||
129 | ATOMIC_OP(and, &=) | ||
130 | ATOMIC_OP(or, |=) | ||
131 | ATOMIC_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 | ||
186 | ATOMIC64_OPS(add, +=) | 190 | ATOMIC64_OPS(add, +=) |
187 | ATOMIC64_OPS(sub, -=) | 191 | ATOMIC64_OPS(sub, -=) |
192 | ATOMIC64_OP(and, &=) | ||
193 | ATOMIC64_OP(or, |=) | ||
194 | ATOMIC64_OP(xor, ^=) | ||
188 | 195 | ||
189 | #undef ATOMIC64_OPS | 196 | #undef ATOMIC64_OPS |
190 | #undef ATOMIC64_OP_RETURN | 197 | #undef ATOMIC64_OP_RETURN |