drm/panthor: Don't add write fences to the shared BOs
[drm/drm-misc.git] / arch / riscv / include / asm / mmiowb.h
blob52ce4a399d9b2b1ecab80ba7b7525c2e148cee35
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() RISCV_FENCE(o, w)
12 #include <linux/smp.h>
13 #include <asm-generic/mmiowb.h>
15 #endif /* _ASM_RISCV_MMIOWB_H */