vmalloc: walk vmap_areas by sorted list instead of rb_next()
[linux/fpc-iii.git] / arch / xtensa / include / asm / barrier.h
blob55707a8009d3aacd5703c484a69c361b49e938a4
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 - 2005 Tensilica Inc.
7 */
9 #ifndef _XTENSA_SYSTEM_H
10 #define _XTENSA_SYSTEM_H
12 #define smp_read_barrier_depends() do { } while(0)
13 #define read_barrier_depends() do { } while(0)
15 #define mb() barrier()
16 #define rmb() mb()
17 #define wmb() mb()
19 #ifdef CONFIG_SMP
20 #error smp_* not defined
21 #else
22 #define smp_mb() barrier()
23 #define smp_rmb() barrier()
24 #define smp_wmb() barrier()
25 #endif
27 #define set_mb(var, value) do { var = value; mb(); } while (0)
29 #endif /* _XTENSA_SYSTEM_H */