aboutsummaryrefslogtreecommitdiffstats
path: root/arch/cris/include/asm/atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/cris/include/asm/atomic.h')
-rw-r--r--arch/cris/include/asm/atomic.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/cris/include/asm/atomic.h b/arch/cris/include/asm/atomic.h
index 1056a5dfe04f..aa429baebaf9 100644
--- a/arch/cris/include/asm/atomic.h
+++ b/arch/cris/include/asm/atomic.h
@@ -7,6 +7,8 @@
7#include <linux/types.h> 7#include <linux/types.h>
8#include <asm/cmpxchg.h> 8#include <asm/cmpxchg.h>
9#include <arch/atomic.h> 9#include <arch/atomic.h>
10#include <arch/system.h>
11#include <asm/barrier.h>
10 12
11/* 13/*
12 * Atomic operations that C can't guarantee us. Useful for 14 * Atomic operations that C can't guarantee us. Useful for
@@ -151,10 +153,4 @@ static inline int __atomic_add_unless(atomic_t *v, int a, int u)
151 return ret; 153 return ret;
152} 154}
153 155
154/* Atomic operations are already serializing */
155#define smp_mb__before_atomic_dec() barrier()
156#define smp_mb__after_atomic_dec() barrier()
157#define smp_mb__before_atomic_inc() barrier()
158#define smp_mb__after_atomic_inc() barrier()
159
160#endif 156#endif