From: Palmer Dabbelt Date: Tue, 28 Nov 2017 22:03:55 +0000 (-0800) Subject: RISC-V: Remove smb_mb__{before,after}_spinlock() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=3343eb6806f365b9e3d451040671fa9336e57513;p=openwrt%2Fstaging%2Fblogic.git RISC-V: Remove smb_mb__{before,after}_spinlock() These are obselete. Signed-off-by: Palmer Dabbelt --- diff --git a/arch/riscv/include/asm/barrier.h b/arch/riscv/include/asm/barrier.h index 455ee16127fb..773c4e039cd7 100644 --- a/arch/riscv/include/asm/barrier.h +++ b/arch/riscv/include/asm/barrier.h @@ -38,14 +38,6 @@ #define smp_rmb() RISCV_FENCE(r,r) #define smp_wmb() RISCV_FENCE(w,w) -/* - * These barriers prevent accesses performed outside a spinlock from being moved - * inside a spinlock. Since RISC-V sets the aq/rl bits on our spinlock only - * enforce release consistency, we need full fences here. - */ -#define smb_mb__before_spinlock() smp_mb() -#define smb_mb__after_spinlock() smp_mb() - #include #endif /* __ASSEMBLY__ */