On Sun, Apr 27, 2025 at 07:34:55PM -0700, Vineet Gupta wrote:
> Thx for this.
>
> FWIW I missed the cmpxchg API when the rest of atomics were relaxed in commit
> 301014cf6d728 ("ARC: atomic_cmpxchg/atomic_xchg: implement relaxed variants")
>
> Added to ARC for-curr (for next)
I'm looking at v6.1
On 4/8/25 10:22, Jason Gunthorpe wrote:
> The core atomic code has a number of macros where it elaborates
> architecture primitives into more functions. ARC uses
> arch_atomic64_cmpxchg() as it's architecture primitive which disable alot
> of the additional functions.
>
> Instead provide arch_cmpxc
The core atomic code has a number of macros where it elaborates
architecture primitives into more functions. ARC uses
arch_atomic64_cmpxchg() as it's architecture primitive which disable alot
of the additional functions.
Instead provide arch_cmpxchg64_relaxed() as the primitive and rely on the
cor