aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/atomic/fallbacks/cmpxchg
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/atomic/fallbacks/cmpxchg')
-rw-r--r--scripts/atomic/fallbacks/cmpxchg3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/atomic/fallbacks/cmpxchg b/scripts/atomic/fallbacks/cmpxchg
new file mode 100644
index 000000000000..1c8507f62e04
--- /dev/null
+++ b/scripts/atomic/fallbacks/cmpxchg
@@ -0,0 +1,3 @@
+cat <<EOF
+ return raw_cmpxchg${order}(&v->counter, old, new);
+EOF