diff options
Diffstat (limited to 'Documentation/atomic_ops.txt')
-rw-r--r-- | Documentation/atomic_ops.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Documentation/atomic_ops.txt b/Documentation/atomic_ops.txt index dab6da3382d9..b19fc34efdb1 100644 --- a/Documentation/atomic_ops.txt +++ b/Documentation/atomic_ops.txt | |||
@@ -266,7 +266,9 @@ with the given old and new values. Like all atomic_xxx operations, | |||
266 | atomic_cmpxchg will only satisfy its atomicity semantics as long as all | 266 | atomic_cmpxchg will only satisfy its atomicity semantics as long as all |
267 | other accesses of *v are performed through atomic_xxx operations. | 267 | other accesses of *v are performed through atomic_xxx operations. |
268 | 268 | ||
269 | atomic_cmpxchg must provide explicit memory barriers around the operation. | 269 | atomic_cmpxchg must provide explicit memory barriers around the operation, |
270 | although if the comparison fails then no memory ordering guarantees are | ||
271 | required. | ||
270 | 272 | ||
271 | The semantics for atomic_cmpxchg are the same as those defined for 'cas' | 273 | The semantics for atomic_cmpxchg are the same as those defined for 'cas' |
272 | below. | 274 | below. |