Messages in this thread | | | From | Max Filippov <> | Date | Mon, 10 May 2021 07:19:35 -0700 | Subject | Re: [PATCH 31/33] locking/atomic: xtensa: move to ARCH_ATOMIC |
| |
On Mon, May 10, 2021 at 2:44 AM Mark Rutland <mark.rutland@arm.com> 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@arm.com> > Cc: Boqun Feng <boqun.feng@gmail.com> > Cc: Chris Zankel <chris@zankel.net> > Cc: Max Filippov <jcmvbkbc@gmail.com> > Cc: Peter Zijlstra <peterz@infradead.org> > Cc: Will Deacon <will@kernel.org> > --- > 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@gmail.com>
-- Thanks. -- Max
| |