diff options
Diffstat (limited to 'arch/blackfin')
-rw-r--r-- | arch/blackfin/include/asm/atomic.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/blackfin/include/asm/atomic.h b/arch/blackfin/include/asm/atomic.h index f2cf5b714ea4..292c86f74f85 100644 --- a/arch/blackfin/include/asm/atomic.h +++ b/arch/blackfin/include/asm/atomic.h | |||
@@ -89,13 +89,13 @@ static inline void atomic_set_mask(int mask, atomic_t *v) | |||
89 | #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) | 89 | #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) |
90 | #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) | 90 | #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) |
91 | 91 | ||
92 | #define atomic_add_unless(v, a, u) \ | 92 | #define __atomic_add_unless(v, a, u) \ |
93 | ({ \ | 93 | ({ \ |
94 | int c, old; \ | 94 | int c, old; \ |
95 | c = atomic_read(v); \ | 95 | c = atomic_read(v); \ |
96 | while (c != (u) && (old = atomic_cmpxchg((v), c, c + (a))) != c) \ | 96 | while (c != (u) && (old = atomic_cmpxchg((v), c, c + (a))) != c) \ |
97 | c = old; \ | 97 | c = old; \ |
98 | c != (u); \ | 98 | c; \ |
99 | }) | 99 | }) |
100 | 100 | ||
101 | /* | 101 | /* |