lkml.org 
[lkml]   [2021]   [May]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 03/33] locking/atomic: h8300: use asm-generic exclusively
    Date
    As h8300's implementation of the atomics isn't using any arch-specific
    functionality, and its implementation of cmpxchg only uses assembly to
    non-atomically swap two elements in memory, we may as well use the
    asm-generic atomic.h and cmpxchg.h, and avoid the duplicate code.

    Signed-off-by: Mark Rutland <mark.rutland@arm.com>
    Cc: Boqun Feng <boqun.feng@gmail.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Will Deacon <will@kernel.org>
    Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
    ---
    arch/h8300/include/asm/Kbuild | 1 +
    arch/h8300/include/asm/atomic.h | 97 ----------------------------------------
    arch/h8300/include/asm/cmpxchg.h | 66 ---------------------------
    3 files changed, 1 insertion(+), 163 deletions(-)
    delete mode 100644 arch/h8300/include/asm/atomic.h
    delete mode 100644 arch/h8300/include/asm/cmpxchg.h

    diff --git a/arch/h8300/include/asm/Kbuild b/arch/h8300/include/asm/Kbuild
    index 60ee7f0d60a8..e23139c8fc0d 100644
    --- a/arch/h8300/include/asm/Kbuild
    +++ b/arch/h8300/include/asm/Kbuild
    @@ -1,5 +1,6 @@
    # SPDX-License-Identifier: GPL-2.0
    generic-y += asm-offsets.h
    +generic-y += cmpxchg.h
    generic-y += extable.h
    generic-y += kvm_para.h
    generic-y += mcs_spinlock.h
    diff --git a/arch/h8300/include/asm/atomic.h b/arch/h8300/include/asm/atomic.h
    deleted file mode 100644
    index a990d151f163..000000000000
    diff --git a/arch/h8300/include/asm/cmpxchg.h b/arch/h8300/include/asm/cmpxchg.h
    deleted file mode 100644
    index c64bb38ce242..000000000000
    --
    2.11.0
    \
     
     \ /
      Last update: 2021-05-25 16:04    [W:4.326 / U:0.136 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site