]> git.ipfire.org Git - thirdparty/linux.git/blame - arch/riscv/include/asm/mmiowb.h
Merge tag 'io_uring-5.7-2020-05-22' of git://git.kernel.dk/linux-block
[thirdparty/linux.git] / arch / riscv / include / asm / mmiowb.h
CommitLineData
b012980d
WD
1/* SPDX-License-Identifier: GPL-2.0 */
2
3#ifndef _ASM_RISCV_MMIOWB_H
4#define _ASM_RISCV_MMIOWB_H
5
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");
11
ed1ed4c0 12#include <linux/smp.h>
b012980d
WD
13#include <asm-generic/mmiowb.h>
14
6b57ba8e 15#endif /* _ASM_RISCV_MMIOWB_H */