xref: /linux/scripts/atomic/fallbacks/cmpxchg (revision d12157efc8e083c77d054675fcdd594f54cc7e2b)
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