Re: [PATCH 31/33] locking/atomic: xtensa: move to ARCH_ATOMIC
From: Max Filippov
Date: Mon May 10 2021 - 11:00:48 EST
On Mon, May 10, 2021 at 2:44 AM Mark Rutland <mark.rutland@xxxxxxx> wrote:
>
> We'd like all architectures to convert to ARCH_ATOMIC, as once all
> architectures are converted it will be possible to make significant
> cleanups to the atomics headers, and this will make it much easier to
> generically enable atomic functionality (e.g. debug logic in the
> instrumented wrappers).
>
> As a step towards that, this patch migrates xtensa to ARCH_ATOMIC. The
> arch code provides arch_{atomic,atomic64,xchg,cmpxchg}*(), and common
> code wraps these with optional instrumentation to provide the regular
> functions.
>
> Signed-off-by: Mark Rutland <mark.rutland@xxxxxxx>
> Cc: Boqun Feng <boqun.feng@xxxxxxxxx>
> Cc: Chris Zankel <chris@xxxxxxxxxx>
> Cc: Max Filippov <jcmvbkbc@xxxxxxxxx>
> Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
> Cc: Will Deacon <will@xxxxxxxxxx>
> ---
> arch/xtensa/Kconfig | 1 +
> arch/xtensa/include/asm/atomic.h | 26 +++++++++++++-------------
> arch/xtensa/include/asm/cmpxchg.h | 10 +++++-----
> 3 files changed, 19 insertions(+), 18 deletions(-)
Acked-by: Max Filippov <jcmvbkbc@xxxxxxxxx>
--
Thanks.
-- Max