aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/include/asm/atomic.h')
-rw-r--r--arch/powerpc/include/asm/atomic.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/powerpc/include/asm/atomic.h b/arch/powerpc/include/asm/atomic.h
index e3b1d41c89be..28992d012926 100644
--- a/arch/powerpc/include/asm/atomic.h
+++ b/arch/powerpc/include/asm/atomic.h
@@ -8,6 +8,7 @@
8#ifdef __KERNEL__ 8#ifdef __KERNEL__
9#include <linux/types.h> 9#include <linux/types.h>
10#include <asm/cmpxchg.h> 10#include <asm/cmpxchg.h>
11#include <asm/barrier.h>
11 12
12#define ATOMIC_INIT(i) { (i) } 13#define ATOMIC_INIT(i) { (i) }
13 14
@@ -270,11 +271,6 @@ static __inline__ int atomic_dec_if_positive(atomic_t *v)
270} 271}
271#define atomic_dec_if_positive atomic_dec_if_positive 272#define atomic_dec_if_positive atomic_dec_if_positive
272 273
273#define smp_mb__before_atomic_dec() smp_mb()
274#define smp_mb__after_atomic_dec() smp_mb()
275#define smp_mb__before_atomic_inc() smp_mb()
276#define smp_mb__after_atomic_inc() smp_mb()
277
278#ifdef __powerpc64__ 274#ifdef __powerpc64__
279 275
280#define ATOMIC64_INIT(i) { (i) } 276#define ATOMIC64_INIT(i) { (i) }