]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
um: Use real DMA barriers
authorJohannes Berg <johannes.berg@intel.com>
Wed, 11 Sep 2019 12:51:19 +0000 (14:51 +0200)
committerRichard Weinberger <richard@nod.at>
Sun, 15 Sep 2019 19:37:14 +0000 (21:37 +0200)
When we have virtio enabled, we must have real barriers since we
may be running on an SMP machine (quite likely are, in fact), so
the other process can be on another CPU.

Since in any other case we don't really use DMA barriers, remove
their override completely so real barriers will get used. In the
future we might need them for other cases as well.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/x86/um/asm/barrier.h

index eb0654f39fd23f160f52a4b9012c2751e734e83f..165be7f9a96447bc87138e0e4392d7b33f4868d8 100644 (file)
@@ -23,9 +23,6 @@
 
 #endif /* CONFIG_X86_32 */
 
-#define dma_rmb()      barrier()
-#define dma_wmb()      barrier()
-
 #include <asm-generic/barrier.h>
 
 #endif