projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61a60d3
)
RISC-V: Remove smb_mb__{before,after}_spinlock()
author
Palmer Dabbelt
<
[email protected]
>
Tue, 28 Nov 2017 22:03:55 +0000
(14:03 -0800)
committer
Palmer Dabbelt
<
[email protected]
>
Tue, 28 Nov 2017 22:03:55 +0000
(14:03 -0800)
These are obselete.
Signed-off-by: Palmer Dabbelt <
[email protected]
>
arch/riscv/include/asm/barrier.h
patch
|
blob
|
history
diff --git
a/arch/riscv/include/asm/barrier.h
b/arch/riscv/include/asm/barrier.h
index 455ee16127fbcc529fa248192a2476e114909a0e..773c4e039cd7288bcd25ed53ce831db84c766f26 100644
(file)
--- 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 <asm-generic/barrier.h>
#endif /* __ASSEMBLY__ */