Re: [RFC][PATCH 07/12] percpu: Wire up cmpxchg128

From: Peter Zijlstra
Date: Mon Jan 09 2023 - 11:31:20 EST


On Wed, Jan 04, 2023 at 01:09:16PM +0100, Heiko Carstens wrote:
> On Mon, Dec 19, 2022 at 04:35:32PM +0100, Peter Zijlstra wrote:
> > In order to replace cmpxchg_double() with the newly minted
> > cmpxchg128() family of functions, wire it up in this_cpu_cmpxchg().
> >
> > Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
> ...
> > --- a/arch/s390/include/asm/percpu.h
> > +++ b/arch/s390/include/asm/percpu.h
> > +#define this_cpu_cmpxchg_16(pcp, oval, nval) \
> > +({ \
> > + u128 old__ = __pcpu_cast_128((nval), (nval)); \
> > + u128 new__ = __pcpu_cast_128((oval), (oval)); \
>
> spot the bug... please merge the below into this patch.

D'oh, luckily I got a fresh pile of brown paper bags for xmas.