diff options
Diffstat (limited to 'include/asm-cris/atomic.h')
-rw-r--r-- | include/asm-cris/atomic.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-cris/atomic.h b/include/asm-cris/atomic.h index 683b05a57d88..0b51a87e5532 100644 --- a/include/asm-cris/atomic.h +++ b/include/asm-cris/atomic.h | |||
@@ -136,6 +136,8 @@ static inline int atomic_cmpxchg(atomic_t *v, int old, int new) | |||
136 | return ret; | 136 | return ret; |
137 | } | 137 | } |
138 | 138 | ||
139 | #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) | ||
140 | |||
139 | static inline int atomic_add_unless(atomic_t *v, int a, int u) | 141 | static inline int atomic_add_unless(atomic_t *v, int a, int u) |
140 | { | 142 | { |
141 | int ret; | 143 | int ret; |
@@ -156,4 +158,5 @@ static inline int atomic_add_unless(atomic_t *v, int a, int u) | |||
156 | #define smp_mb__before_atomic_inc() barrier() | 158 | #define smp_mb__before_atomic_inc() barrier() |
157 | #define smp_mb__after_atomic_inc() barrier() | 159 | #define smp_mb__after_atomic_inc() barrier() |
158 | 160 | ||
161 | #include <asm-generic/atomic.h> | ||
159 | #endif | 162 | #endif |