Go to the documentation of this file.
11 #ifndef _ASM_BARRIER_H
12 #define _ASM_BARRIER_H
14 #define nop() asm volatile ("nop")
16 #define mb() asm volatile ("": : :"memory")
18 #define wmb() asm volatile ("": : :"memory")
22 #define smp_rmb() rmb()
23 #define smp_wmb() wmb()
24 #define set_mb(var, value) do { xchg(&var, value); } while (0)
26 #define smp_mb() barrier()
27 #define smp_rmb() barrier()
28 #define smp_wmb() barrier()
29 #define set_mb(var, value) do { var = value; mb(); } while (0)
32 #define set_wmb(var, value) do { var = value; wmb(); } while (0)
34 #define read_barrier_depends() do {} while (0)
35 #define smp_read_barrier_depends() do {} while (0)