summaryrefslogtreecommitdiff
path: root/scripts/atomic/fallbacks/cmpxchg
blob: 87cd010f98d583f59a38ef8c5075b7ac607a355e (plain)
1
2
3
4
5
6
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