diff options
author | Eric Chan <ericchancf@google.com> | 2024-02-17 14:13:16 +0100 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2024-03-20 02:52:24 +0100 |
commit | c85688e2b0f0afbce7ea3cd8c47f2be67c09b9f4 (patch) | |
tree | 72f1f508a0cb61c6e79fd55dcf50eb726f299f18 /arch/riscv/include/asm/cmpxchg.h | |
parent | riscv/barrier: Define RISCV_FULL_BARRIER (diff) | |
download | linux-c85688e2b0f0afbce7ea3cd8c47f2be67c09b9f4.tar.xz linux-c85688e2b0f0afbce7ea3cd8c47f2be67c09b9f4.zip |
riscv/barrier: Consolidate fence definitions
Disparate fence implementations are consolidated into fence.h.
Also introduce RISCV_FENCE_ASM to make fence macro more reusable.
Signed-off-by: Eric Chan <ericchancf@google.com>
Reviewed-by: Andrea Parri <parri.andrea@gmail.com>
Reviewed-by: Samuel Holland <samuel.holland@sifive.com>
Tested-by: Samuel Holland <samuel.holland@sifive.com>
Link: https://lore.kernel.org/r/20240217131316.3668927-1-ericchancf@google.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/include/asm/cmpxchg.h')
-rw-r--r-- | arch/riscv/include/asm/cmpxchg.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/riscv/include/asm/cmpxchg.h b/arch/riscv/include/asm/cmpxchg.h index a608e4d1a0a4..2fee65cc8443 100644 --- a/arch/riscv/include/asm/cmpxchg.h +++ b/arch/riscv/include/asm/cmpxchg.h @@ -8,7 +8,6 @@ #include <linux/bug.h> -#include <asm/barrier.h> #include <asm/fence.h> #define __xchg_relaxed(ptr, new, size) \ |