summaryrefslogtreecommitdiffstats
path: root/tools/include/linux/atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/include/linux/atomic.h')
-rw-r--r--tools/include/linux/atomic.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/include/linux/atomic.h b/tools/include/linux/atomic.h
index 4e3d3d18ebab6..9f21fc2b092b8 100644
--- a/tools/include/linux/atomic.h
+++ b/tools/include/linux/atomic.h
@@ -3,4 +3,10 @@
#include <asm/atomic.h>
+/* atomic_cmpxchg_relaxed */
+#ifndef atomic_cmpxchg_relaxed
+#define atomic_cmpxchg_relaxed atomic_cmpxchg
+#define atomic_cmpxchg_release atomic_cmpxchg
+#endif /* atomic_cmpxchg_relaxed */
+
#endif /* __TOOLS_LINUX_ATOMIC_H */