|
@@ -653,6 +653,8 @@ static inline int atomic_dec_if_positive(atomic_t *v)
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
+#define atomic_cond_read_acquire(v, c) smp_cond_load_acquire(&(v)->counter, (c))
|
|
|
|
+
|
|
#ifdef CONFIG_GENERIC_ATOMIC64
|
|
#ifdef CONFIG_GENERIC_ATOMIC64
|
|
#include <asm-generic/atomic64.h>
|
|
#include <asm-generic/atomic64.h>
|
|
#endif
|
|
#endif
|
|
@@ -1072,6 +1074,8 @@ static inline long long atomic64_fetch_andnot_release(long long i, atomic64_t *v
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
+#define atomic64_cond_read_acquire(v, c) smp_cond_load_acquire(&(v)->counter, (c))
|
|
|
|
+
|
|
#include <asm-generic/atomic-long.h>
|
|
#include <asm-generic/atomic-long.h>
|
|
|
|
|
|
#endif /* _LINUX_ATOMIC_H */
|
|
#endif /* _LINUX_ATOMIC_H */
|