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