Go to the documentation of this file.
4 #include <asm/compiler.h>
7 __asm__ __volatile__("mb": : :"memory")
10 __asm__ __volatile__("mb": : :"memory")
13 __asm__ __volatile__("wmb": : :"memory")
15 #define read_barrier_depends() \
16 __asm__ __volatile__("mb": : :"memory")
19 #define __ASM_SMP_MB "\tmb\n"
21 #define smp_rmb() rmb()
22 #define smp_wmb() wmb()
23 #define smp_read_barrier_depends() read_barrier_depends()
26 #define smp_mb() barrier()
27 #define smp_rmb() barrier()
28 #define smp_wmb() barrier()
29 #define smp_read_barrier_depends() do { } while (0)
32 #define set_mb(var, value) \
33 do { var = value; mb(); } while (0)