]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blame - arch/riscv/include/asm/fence.h
Merge tag 'mmc-v5.14-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc
[mirror_ubuntu-jammy-kernel.git] / arch / riscv / include / asm / fence.h
CommitLineData
0123f4d7
AP
1#ifndef _ASM_RISCV_FENCE_H
2#define _ASM_RISCV_FENCE_H
3
4#ifdef CONFIG_SMP
5#define RISCV_ACQUIRE_BARRIER "\tfence r , rw\n"
6#define RISCV_RELEASE_BARRIER "\tfence rw, w\n"
7#else
8#define RISCV_ACQUIRE_BARRIER
9#define RISCV_RELEASE_BARRIER
10#endif
11
12#endif /* _ASM_RISCV_FENCE_H */