Merge tag 'linux-kselftest-kunit-fixes-5.11-rc3' of git://git.kernel.org/pub/scm...
[linux/fpc-iii.git] / arch / riscv / include / asm / mmiowb.h
blob0b2333e71fdc5d52b06f2b96d88ab7f39ff37d70
1 /* SPDX-License-Identifier: GPL-2.0 */
3 #ifndef _ASM_RISCV_MMIOWB_H
4 #define _ASM_RISCV_MMIOWB_H
6 /*
7 * "o,w" is sufficient to ensure that all writes to the device have completed
8 * before the write to the spinlock is allowed to commit.
9 */
10 #define mmiowb() __asm__ __volatile__ ("fence o,w" : : : "memory");
12 #include <linux/smp.h>
13 #include <asm-generic/mmiowb.h>
15 #endif /* _ASM_RISCV_MMIOWB_H */