RISC-V: Remove smb_mb__{before,after}_spinlock()
These are obselete. Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
This commit is contained in:
parent
61a60d35b7
commit
3343eb6806
|
@ -38,14 +38,6 @@
|
||||||
#define smp_rmb() RISCV_FENCE(r,r)
|
#define smp_rmb() RISCV_FENCE(r,r)
|
||||||
#define smp_wmb() RISCV_FENCE(w,w)
|
#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 <asm-generic/barrier.h>
|
#include <asm-generic/barrier.h>
|
||||||
|
|
||||||
#endif /* __ASSEMBLY__ */
|
#endif /* __ASSEMBLY__ */
|
||||||
|
|
Loading…
Reference in New Issue