|
@@ -8,6 +8,7 @@
|
|
|
#ifdef __KERNEL__
|
|
|
#include <linux/types.h>
|
|
|
#include <asm/cmpxchg.h>
|
|
|
+#include <asm/barrier.h>
|
|
|
|
|
|
#define ATOMIC_INIT(i) { (i) }
|
|
|
|
|
@@ -270,11 +271,6 @@ static __inline__ int atomic_dec_if_positive(atomic_t *v)
|
|
|
}
|
|
|
#define atomic_dec_if_positive atomic_dec_if_positive
|
|
|
|
|
|
-#define smp_mb__before_atomic_dec() smp_mb()
|
|
|
-#define smp_mb__after_atomic_dec() smp_mb()
|
|
|
-#define smp_mb__before_atomic_inc() smp_mb()
|
|
|
-#define smp_mb__after_atomic_inc() smp_mb()
|
|
|
-
|
|
|
#ifdef __powerpc64__
|
|
|
|
|
|
#define ATOMIC64_INIT(i) { (i) }
|