Staging
v0.8.1
swh:1:snp:a902887e4be9191b7c6c4406aa06b31c1ce2c7cc
Raw File
Tip revision: cd6c84d8f0cdc911df435bb075ba22ce3c605b07 authored by Linus Torvalds on 26 May 2019, 23:49:19 UTC
Linux 5.2-rc2
Tip revision: cd6c84d
mmiowb.h
/* SPDX-License-Identifier: GPL-2.0 */

#ifndef _ASM_RISCV_MMIOWB_H
#define _ASM_RISCV_MMIOWB_H

/*
 * "o,w" is sufficient to ensure that all writes to the device have completed
 * before the write to the spinlock is allowed to commit.
 */
#define mmiowb()	__asm__ __volatile__ ("fence o,w" : : : "memory");

#include <asm-generic/mmiowb.h>

#endif	/* ASM_RISCV_MMIOWB_H */
back to top