Re: [PATCH RFC] Introduce atomic and per-cpu add-max and sub-min operations
On Sun, 14 Feb 2016, Konstantin Khlebnikov wrote:
> Yep, they are just abstraction around cmpxchg, as well as a half of atomic > operations. Probably some architectures could implement this differently.
Ok then use this_cpu_cmpxchg and cmpxchg to implement it instead?