summaryrefslogtreecommitdiff
path: root/arch/xtensa/include/asm/barrier.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/xtensa/include/asm/barrier.h')
-rw-r--r--arch/xtensa/include/asm/barrier.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/xtensa/include/asm/barrier.h b/arch/xtensa/include/asm/barrier.h
index 0a24b04d6b21..5b88774c75ab 100644
--- a/arch/xtensa/include/asm/barrier.h
+++ b/arch/xtensa/include/asm/barrier.h
@@ -13,6 +13,9 @@
#define rmb() barrier()
#define wmb() mb()
+#define smp_mb__before_atomic() barrier()
+#define smp_mb__after_atomic() barrier()
+
#include <asm-generic/barrier.h>
#endif /* _XTENSA_SYSTEM_H */