Go to the documentation of this file.
14 #ifndef __ASM_GENERIC_BARRIER_H
15 #define __ASM_GENERIC_BARRIER_H
19 #define nop() asm volatile ("nop")
29 #define mb() asm volatile ("": : :"memory")
31 #define wmb() asm volatile ("": : :"memory")
35 #define smp_rmb() rmb()
36 #define smp_wmb() wmb()
38 #define smp_mb() barrier()
39 #define smp_rmb() barrier()
40 #define smp_wmb() barrier()
43 #define set_mb(var, value) do { var = value; mb(); } while (0)
44 #define set_wmb(var, value) do { var = value; wmb(); } while (0)
46 #define read_barrier_depends() do {} while (0)
47 #define smp_read_barrier_depends() do {} while (0)