]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/linux/atomic.h
atomic: remove all traces of READ_ONCE_CTRL() and atomic*_read_ctrl()
[karo-tx-linux.git] / include / linux / atomic.h
index 27e580d232ca88f01620333d3050b0f987b6656c..301de78d65f75c194720cc5168359dbce6eab59f 100644 (file)
@@ -4,15 +4,6 @@
 #include <asm/atomic.h>
 #include <asm/barrier.h>
 
-#ifndef atomic_read_ctrl
-static inline int atomic_read_ctrl(const atomic_t *v)
-{
-       int val = atomic_read(v);
-       smp_read_barrier_depends(); /* Enforce control dependency. */
-       return val;
-}
-#endif
-
 /*
  * Relaxed variants of xchg, cmpxchg and some atomic operations.
  *
@@ -561,15 +552,6 @@ static inline int atomic_dec_if_positive(atomic_t *v)
 #include <asm-generic/atomic64.h>
 #endif
 
-#ifndef atomic64_read_ctrl
-static inline long long atomic64_read_ctrl(const atomic64_t *v)
-{
-       long long val = atomic64_read(v);
-       smp_read_barrier_depends(); /* Enforce control dependency. */
-       return val;
-}
-#endif
-
 #ifndef atomic64_andnot
 static inline void atomic64_andnot(long long i, atomic64_t *v)
 {