diff options
Diffstat (limited to 'include/asm-xtensa/atomic.h')
-rw-r--r-- | include/asm-xtensa/atomic.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-xtensa/atomic.h b/include/asm-xtensa/atomic.h index 12b5732dc6e..cd40c5e7516 100644 --- a/include/asm-xtensa/atomic.h +++ b/include/asm-xtensa/atomic.h | |||
@@ -223,6 +223,7 @@ static inline int atomic_sub_return(int i, atomic_t * v) | |||
223 | */ | 223 | */ |
224 | #define atomic_add_negative(i,v) (atomic_add_return((i),(v)) < 0) | 224 | #define atomic_add_negative(i,v) (atomic_add_return((i),(v)) < 0) |
225 | 225 | ||
226 | #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) | ||
226 | 227 | ||
227 | static inline void atomic_clear_mask(unsigned int mask, atomic_t *v) | 228 | static inline void atomic_clear_mask(unsigned int mask, atomic_t *v) |
228 | { | 229 | { |