diff options
Diffstat (limited to 'arch/sparc/include/asm/atomic_64.h')
-rw-r--r-- | arch/sparc/include/asm/atomic_64.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/sparc/include/asm/atomic_64.h b/arch/sparc/include/asm/atomic_64.h index be56a244c9cf..8b2f1bde2889 100644 --- a/arch/sparc/include/asm/atomic_64.h +++ b/arch/sparc/include/asm/atomic_64.h | |||
@@ -9,6 +9,7 @@ | |||
9 | 9 | ||
10 | #include <linux/types.h> | 10 | #include <linux/types.h> |
11 | #include <asm/cmpxchg.h> | 11 | #include <asm/cmpxchg.h> |
12 | #include <asm/barrier.h> | ||
12 | 13 | ||
13 | #define ATOMIC_INIT(i) { (i) } | 14 | #define ATOMIC_INIT(i) { (i) } |
14 | #define ATOMIC64_INIT(i) { (i) } | 15 | #define ATOMIC64_INIT(i) { (i) } |
@@ -108,10 +109,4 @@ static inline long atomic64_add_unless(atomic64_t *v, long a, long u) | |||
108 | 109 | ||
109 | extern long atomic64_dec_if_positive(atomic64_t *v); | 110 | extern long atomic64_dec_if_positive(atomic64_t *v); |
110 | 111 | ||
111 | /* Atomic operations are already serializing */ | ||
112 | #define smp_mb__before_atomic_dec() barrier() | ||
113 | #define smp_mb__after_atomic_dec() barrier() | ||
114 | #define smp_mb__before_atomic_inc() barrier() | ||
115 | #define smp_mb__after_atomic_inc() barrier() | ||
116 | |||
117 | #endif /* !(__ARCH_SPARC64_ATOMIC__) */ | 112 | #endif /* !(__ARCH_SPARC64_ATOMIC__) */ |