aboutsummaryrefslogtreecommitdiffstats
path: root/arch/xtensa/include/asm/atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/xtensa/include/asm/atomic.h')
-rw-r--r--arch/xtensa/include/asm/atomic.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/xtensa/include/asm/atomic.h b/arch/xtensa/include/asm/atomic.h
index e7fb447bce8e..e5103b47a8ce 100644
--- a/arch/xtensa/include/asm/atomic.h
+++ b/arch/xtensa/include/asm/atomic.h
@@ -19,6 +19,7 @@
19#ifdef __KERNEL__ 19#ifdef __KERNEL__
20#include <asm/processor.h> 20#include <asm/processor.h>
21#include <asm/cmpxchg.h> 21#include <asm/cmpxchg.h>
22#include <asm/barrier.h>
22 23
23#define ATOMIC_INIT(i) { (i) } 24#define ATOMIC_INIT(i) { (i) }
24 25
@@ -387,12 +388,6 @@ static inline void atomic_set_mask(unsigned int mask, atomic_t *v)
387#endif 388#endif
388} 389}
389 390
390/* Atomic operations are already serializing */
391#define smp_mb__before_atomic_dec() barrier()
392#define smp_mb__after_atomic_dec() barrier()
393#define smp_mb__before_atomic_inc() barrier()
394#define smp_mb__after_atomic_inc() barrier()
395
396#endif /* __KERNEL__ */ 391#endif /* __KERNEL__ */
397 392
398#endif /* _XTENSA_ATOMIC_H */ 393#endif /* _XTENSA_ATOMIC_H */