summaryrefslogtreecommitdiff
path: root/kern/atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'kern/atomic.h')
-rw-r--r--kern/atomic.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/kern/atomic.h b/kern/atomic.h
index 75b07012..63f0ac73 100644
--- a/kern/atomic.h
+++ b/kern/atomic.h
@@ -116,6 +116,9 @@ MACRO_END
* Common shortcuts.
*/
+#define atomic_load_acquire(ptr) atomic_load(ptr, ATOMIC_ACQUIRE)
+#define atomic_store_release(ptr, val) atomic_store(ptr, val, ATOMIC_RELEASE)
+
#define atomic_cas_acquire(ptr, oval, nval) \
atomic_cas(ptr, oval, nval, ATOMIC_ACQUIRE)
@@ -129,9 +132,6 @@ MACRO_END
#define atomic_swap_release(ptr, val) atomic_swap(ptr, val, ATOMIC_RELEASE)
#define atomic_swap_acq_rel(ptr, val) atomic_swap(ptr, val, ATOMIC_ACQ_REL)
-#define atomic_fetch_add_acq_rel(ptr, val) \
- atomic_fetch_add(ptr, val, ATOMIC_ACQ_REL)
-
#define atomic_fetch_sub_acq_rel(ptr, val) \
atomic_fetch_sub(ptr, val, ATOMIC_ACQ_REL)