mmiowb.h 398 B

123456789101112131415
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_RISCV_MMIOWB_H
  3. #define _ASM_RISCV_MMIOWB_H
  4. /*
  5. * "o,w" is sufficient to ensure that all writes to the device have completed
  6. * before the write to the spinlock is allowed to commit.
  7. */
  8. #define mmiowb() __asm__ __volatile__ ("fence o,w" : : : "memory");
  9. #include <linux/smp.h>
  10. #include <asm-generic/mmiowb.h>
  11. #endif /* _ASM_RISCV_MMIOWB_H */