Staging
v0.8.1
swh:1:snp:a902887e4be9191b7c6c4406aa06b31c1ce2c7cc
Raw File
Tip revision: 16fbf79b0f83bc752cee8589279f1ebfe57b3b6e authored by Linus Torvalds on 23 March 2020, 01:31:56 UTC
Linux 5.6-rc7
Tip revision: 16fbf79
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