diff options
author | Peter Zijlstra <peterz@infradead.org> | 2014-04-23 14:00:54 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2015-07-27 08:06:22 -0400 |
commit | 610f7ba93b1e4cda7370f367a6042cbda61227bb (patch) | |
tree | 1039b23d1a736abf5ee8b09b14419faf79b3439e /arch/hexagon | |
parent | d835b6c4cc02507b3bf3f8ee6c86857cf0ee67ab (diff) |
hexagon: 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/hexagon')
-rw-r--r-- | arch/hexagon/include/asm/atomic.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/hexagon/include/asm/atomic.h b/arch/hexagon/include/asm/atomic.h index 93d07025f183..4efe2c7c0dd8 100644 --- a/arch/hexagon/include/asm/atomic.h +++ b/arch/hexagon/include/asm/atomic.h | |||
@@ -132,6 +132,12 @@ static inline int atomic_##op##_return(int i, atomic_t *v) \ | |||
132 | ATOMIC_OPS(add) | 132 | ATOMIC_OPS(add) |
133 | ATOMIC_OPS(sub) | 133 | ATOMIC_OPS(sub) |
134 | 134 | ||
135 | #define CONFIG_ARCH_HAS_ATOMIC_OR | ||
136 | |||
137 | ATOMIC_OP(and) | ||
138 | ATOMIC_OP(or) | ||
139 | ATOMIC_OP(xor) | ||
140 | |||
135 | #undef ATOMIC_OPS | 141 | #undef ATOMIC_OPS |
136 | #undef ATOMIC_OP_RETURN | 142 | #undef ATOMIC_OP_RETURN |
137 | #undef ATOMIC_OP | 143 | #undef ATOMIC_OP |