• Mark Rutland's avatar
    locking/atomic: sh: move to ARCH_ATOMIC · 8c641755
    Mark Rutland authored
    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 sh 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: default avatarMark Rutland <mark.rutland@arm.com>
    Cc: Boqun Feng <boqun.feng@gmail.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Rich Felker <dalias@libc.org>
    Cc: Will Deacon <will@kernel.org>
    Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
    Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
    Link: https://lore.kernel.org/r/20210525140232.53872-30-mark.rutland@arm.com
    8c641755
atomic.h 840 Bytes