irqchip: Fix dependencies for archs w/o HAS_IOMEM
[linux/fpc-iii.git] / arch / xtensa / include / asm / barrier.h
blob5b88774c75abaee187cc5b1f3915858b3452d3b4
1 /*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
6 * Copyright (C) 2001 - 2012 Tensilica Inc.
7 */
9 #ifndef _XTENSA_SYSTEM_H
10 #define _XTENSA_SYSTEM_H
12 #define mb() ({ __asm__ __volatile__("memw" : : : "memory"); })
13 #define rmb() barrier()
14 #define wmb() mb()
16 #define smp_mb__before_atomic() barrier()
17 #define smp_mb__after_atomic() barrier()
19 #include <asm-generic/barrier.h>
21 #endif /* _XTENSA_SYSTEM_H */