aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mn10300/include/asm/atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mn10300/include/asm/atomic.h')
-rw-r--r--arch/mn10300/include/asm/atomic.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mn10300/include/asm/atomic.h b/arch/mn10300/include/asm/atomic.h
index 041b9d69d86c..a2e6759af4db 100644
--- a/arch/mn10300/include/asm/atomic.h
+++ b/arch/mn10300/include/asm/atomic.h
@@ -260,13 +260,13 @@ static inline void atomic_dec(atomic_t *v)
260#define atomic_dec_and_test(v) (atomic_sub_return(1, (v)) == 0) 260#define atomic_dec_and_test(v) (atomic_sub_return(1, (v)) == 0)
261#define atomic_inc_and_test(v) (atomic_add_return(1, (v)) == 0) 261#define atomic_inc_and_test(v) (atomic_add_return(1, (v)) == 0)
262 262
263#define atomic_add_unless(v, a, u) \ 263#define __atomic_add_unless(v, a, u) \
264({ \ 264({ \
265 int c, old; \ 265 int c, old; \
266 c = atomic_read(v); \ 266 c = atomic_read(v); \
267 while (c != (u) && (old = atomic_cmpxchg((v), c, c + (a))) != c) \ 267 while (c != (u) && (old = atomic_cmpxchg((v), c, c + (a))) != c) \
268 c = old; \ 268 c = old; \
269 c != (u); \ 269 c; \
270}) 270})
271 271
272 272