mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 07:56:49 +07:00
6b57ba8ed4
There are many different formats in each header now, such as _ASM_XXX_H, __ASM_XXX_H, _ASM_RISCV_XXX_H, RISCV_XXX_H, etc., This patch tries to unify the format by using _ASM_RISCV_XXX_H, because the most header use it now. This patch also adds the conditional to the headers if they lost it. Signed-off-by: Zong Li <zong.li@sifive.com> Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
15 lines
375 B
C
15 lines
375 B
C
/* 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 */
|