]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blobdiff - include/asm-generic/io.h
mmiowb: Hook up mmiowb helpers to spinlocks and generic I/O accessors
[mirror_ubuntu-focal-kernel.git] / include / asm-generic / io.h
index 303871651f8aa0cd92dff49cb188c2ebd5e0fab5..bc490a7466021451cf894de31df9709cc3e3bdf6 100644 (file)
@@ -19,6 +19,7 @@
 #include <asm-generic/iomap.h>
 #endif
 
+#include <asm/mmiowb.h>
 #include <asm-generic/pci_iomap.h>
 
 #ifndef mmiowb
@@ -49,7 +50,7 @@
 
 /* serialize device access against a spin_unlock, usually handled there. */
 #ifndef __io_aw
-#define __io_aw()      barrier()
+#define __io_aw()      mmiowb_set_pending()
 #endif
 
 #ifndef __io_pbw