xref: /linux-6.15/scripts/atomic/fallbacks/xchg (revision d12157ef)
1cat <<EOF
2static __always_inline ${int}
3arch_${atomic}_xchg${order}(${atomic}_t *v, ${int} new)
4{
5	return arch_xchg${order}(&v->counter, new);
6}
7EOF
8