diff options
Diffstat (limited to 'Documentation/atomic_ops.txt')
-rw-r--r-- | Documentation/atomic_ops.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/atomic_ops.txt b/Documentation/atomic_ops.txt index f20c10c2858f..4ef245010457 100644 --- a/Documentation/atomic_ops.txt +++ b/Documentation/atomic_ops.txt | |||
@@ -186,7 +186,8 @@ If the atomic value v is not equal to u, this function adds a to v, and | |||
186 | returns non zero. If v is equal to u then it returns zero. This is done as | 186 | returns non zero. If v is equal to u then it returns zero. This is done as |
187 | an atomic operation. | 187 | an atomic operation. |
188 | 188 | ||
189 | atomic_add_unless requires explicit memory barriers around the operation. | 189 | atomic_add_unless requires explicit memory barriers around the operation |
190 | unless it fails (returns 0). | ||
190 | 191 | ||
191 | atomic_inc_not_zero, equivalent to atomic_add_unless(v, 1, 0) | 192 | atomic_inc_not_zero, equivalent to atomic_add_unless(v, 1, 0) |
192 | 193 | ||