WIP FPC-III support
[linux/fpc-iii.git] / arch / alpha / include / asm / barrier.h
blobc56bfffc9918a40e0ed5d1c9e0cd06e0bdfab4ac
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __BARRIER_H
3 #define __BARRIER_H
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) \
10 ({ \
11 compiletime_assert_atomic_type(*p); \
12 __READ_ONCE(*p); \
15 #ifdef CONFIG_SMP
16 #define __ASM_SMP_MB "\tmb\n"
17 #else
18 #define __ASM_SMP_MB
19 #endif
21 #include <asm-generic/barrier.h>
23 #endif /* __BARRIER_H */