diff options
Diffstat (limited to 'arch/tile/include/asm/atomic_32.h')
-rw-r--r-- | arch/tile/include/asm/atomic_32.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/tile/include/asm/atomic_32.h b/arch/tile/include/asm/atomic_32.h index 246feed4794d..c03349e0ca9f 100644 --- a/arch/tile/include/asm/atomic_32.h +++ b/arch/tile/include/asm/atomic_32.h | |||
@@ -81,18 +81,18 @@ static inline int atomic_add_return(int i, atomic_t *v) | |||
81 | } | 81 | } |
82 | 82 | ||
83 | /** | 83 | /** |
84 | * atomic_add_unless - add unless the number is already a given value | 84 | * __atomic_add_unless - add unless the number is already a given value |
85 | * @v: pointer of type atomic_t | 85 | * @v: pointer of type atomic_t |
86 | * @a: the amount to add to v... | 86 | * @a: the amount to add to v... |
87 | * @u: ...unless v is equal to u. | 87 | * @u: ...unless v is equal to u. |
88 | * | 88 | * |
89 | * Atomically adds @a to @v, so long as @v was not already @u. | 89 | * Atomically adds @a to @v, so long as @v was not already @u. |
90 | * Returns non-zero if @v was not @u, and zero otherwise. | 90 | * Returns the old value of @v. |
91 | */ | 91 | */ |
92 | static inline int atomic_add_unless(atomic_t *v, int a, int u) | 92 | static inline int __atomic_add_unless(atomic_t *v, int a, int u) |
93 | { | 93 | { |
94 | smp_mb(); /* barrier for proper semantics */ | 94 | smp_mb(); /* barrier for proper semantics */ |
95 | return _atomic_xchg_add_unless(v, a, u) != u; | 95 | return _atomic_xchg_add_unless(v, a, u); |
96 | } | 96 | } |
97 | 97 | ||
98 | /** | 98 | /** |
@@ -199,7 +199,7 @@ static inline u64 atomic64_add_return(u64 i, atomic64_t *v) | |||
199 | * @u: ...unless v is equal to u. | 199 | * @u: ...unless v is equal to u. |
200 | * | 200 | * |
201 | * Atomically adds @a to @v, so long as @v was not already @u. | 201 | * Atomically adds @a to @v, so long as @v was not already @u. |
202 | * Returns non-zero if @v was not @u, and zero otherwise. | 202 | * Returns the old value of @v. |
203 | */ | 203 | */ |
204 | static inline u64 atomic64_add_unless(atomic64_t *v, u64 a, u64 u) | 204 | static inline u64 atomic64_add_unless(atomic64_t *v, u64 a, u64 u) |
205 | { | 205 | { |