Commit 93fab07c authored by Will Deacon's avatar Will Deacon

locking/barriers: Remove definitions for [smp_]read_barrier_depends()

There are no remaining users of [smp_]read_barrier_depends(), so
remove it from the generic implementation of 'barrier.h'.
Acked-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: default avatarPaul E. McKenney <paulmck@kernel.org>
Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent bb7cdd38
...@@ -46,10 +46,6 @@ ...@@ -46,10 +46,6 @@
#define dma_wmb() wmb() #define dma_wmb() wmb()
#endif #endif
#ifndef read_barrier_depends
#define read_barrier_depends() do { } while (0)
#endif
#ifndef __smp_mb #ifndef __smp_mb
#define __smp_mb() mb() #define __smp_mb() mb()
#endif #endif
...@@ -62,10 +58,6 @@ ...@@ -62,10 +58,6 @@
#define __smp_wmb() wmb() #define __smp_wmb() wmb()
#endif #endif
#ifndef __smp_read_barrier_depends
#define __smp_read_barrier_depends() read_barrier_depends()
#endif
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
#ifndef smp_mb #ifndef smp_mb
...@@ -80,10 +72,6 @@ ...@@ -80,10 +72,6 @@
#define smp_wmb() __smp_wmb() #define smp_wmb() __smp_wmb()
#endif #endif
#ifndef smp_read_barrier_depends
#define smp_read_barrier_depends() __smp_read_barrier_depends()
#endif
#else /* !CONFIG_SMP */ #else /* !CONFIG_SMP */
#ifndef smp_mb #ifndef smp_mb
...@@ -98,10 +86,6 @@ ...@@ -98,10 +86,6 @@
#define smp_wmb() barrier() #define smp_wmb() barrier()
#endif #endif
#ifndef smp_read_barrier_depends
#define smp_read_barrier_depends() do { } while (0)
#endif
#endif /* CONFIG_SMP */ #endif /* CONFIG_SMP */
#ifndef __smp_store_mb #ifndef __smp_store_mb
...@@ -196,7 +180,6 @@ do { \ ...@@ -196,7 +180,6 @@ do { \
#define virt_mb() __smp_mb() #define virt_mb() __smp_mb()
#define virt_rmb() __smp_rmb() #define virt_rmb() __smp_rmb()
#define virt_wmb() __smp_wmb() #define virt_wmb() __smp_wmb()
#define virt_read_barrier_depends() __smp_read_barrier_depends()
#define virt_store_mb(var, value) __smp_store_mb(var, value) #define virt_store_mb(var, value) __smp_store_mb(var, value)
#define virt_mb__before_atomic() __smp_mb__before_atomic() #define virt_mb__before_atomic() __smp_mb__before_atomic()
#define virt_mb__after_atomic() __smp_mb__after_atomic() #define virt_mb__after_atomic() __smp_mb__after_atomic()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment