1 /* SPDX-License-Identifier: GPL-2.0 */
5 #define mb() __asm__ __volatile__("mb": : :"memory")
6 #define rmb() __asm__ __volatile__("mb": : :"memory")
7 #define wmb() __asm__ __volatile__("wmb": : :"memory")
9 #define __smp_load_acquire(p) \
11 compiletime_assert_atomic_type(*p); \
16 #define __ASM_SMP_MB "\tmb\n"
21 #include <asm-generic/barrier.h>
23 #endif /* __BARRIER_H */