Re: [PATCH RFC] Introduce atomic and per-cpu add-max and sub-min operations

From: Christoph Lameter
Date: Tue Feb 16 2016 - 11:11:26 EST


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?