Re: [PATCH 3/8] sparc32: unify __cmpxchg_u{32,64}

From: Arnd Bergmann
Date: Tue Apr 02 2024 - 03:29:27 EST


On Tue, Apr 2, 2024, at 06:28, Al Viro wrote:
> Add a macro that expands to one of those when given u32 or u64
> as an argument - atomic32.c has a lot of similar stuff already.
>
> Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx>

I think we should merge Sam's series to remove non-CAS sparc32
first:

https://lore.kernel.org/all/20240309-sunset-v2-0-f09912574d2c@xxxxxxxxxxxx/

I don't see a patch yet to actually change cmpxchg() to use CAS,
but it can probably just share the sparc64 implementation at
that point.

Arnd