diff options
Diffstat (limited to 'scripts/atomic/fallbacks/cmpxchg')
-rw-r--r-- | scripts/atomic/fallbacks/cmpxchg | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/atomic/fallbacks/cmpxchg b/scripts/atomic/fallbacks/cmpxchg new file mode 100644 index 000000000000..87cd010f98d5 --- /dev/null +++ b/scripts/atomic/fallbacks/cmpxchg @@ -0,0 +1,7 @@ +cat <<EOF +static __always_inline ${int} +arch_${atomic}_cmpxchg${order}(${atomic}_t *v, ${int} old, ${int} new) +{ + return arch_cmpxchg${order}(&v->counter, old, new); +} +EOF |