xref: /linux-6.15/scripts/atomic/fallbacks/cmpxchg (revision d12157ef)
1*d12157efSMark Rutlandcat <<EOF
2*d12157efSMark Rutlandstatic __always_inline ${int}
3*d12157efSMark Rutlandarch_${atomic}_cmpxchg${order}(${atomic}_t *v, ${int} old, ${int} new)
4*d12157efSMark Rutland{
5*d12157efSMark Rutland	return arch_cmpxchg${order}(&v->counter, old, new);
6*d12157efSMark Rutland}
7*d12157efSMark RutlandEOF
8