|
@@ -58,7 +58,12 @@ Like with atomic_t, the rule of thumb is:
|
|
|
|
|
|
- RMW operations that have a return value are fully ordered.
|
|
|
|
|
|
-Except for test_and_set_bit_lock() which has ACQUIRE semantics and
|
|
|
+ - RMW operations that are conditional are unordered on FAILURE,
|
|
|
+ otherwise the above rules apply. In the case of test_and_{}_bit() operations,
|
|
|
+ if the bit in memory is unchanged by the operation then it is deemed to have
|
|
|
+ failed.
|
|
|
+
|
|
|
+Except for a successful test_and_set_bit_lock() which has ACQUIRE semantics and
|
|
|
clear_bit_unlock() which has RELEASE semantics.
|
|
|
|
|
|
Since a platform only has a single means of achieving atomic operations
|