[v5,2/5] um: use real DMA barriers
diff mbox series

Message ID 1568206252-Ieca0b50a173f8a587d412db861c7ae4d6bae97c4@changeid
State Accepted
Headers show
Series
  • um: virtio support
Related show

Commit Message

Johannes Berg Sept. 11, 2019, 12:51 p.m. UTC
From: Johannes Berg <johannes.berg@intel.com>

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>
---
 arch/x86/um/asm/barrier.h | 3 ---
 1 file changed, 3 deletions(-)

Patch
diff mbox series

diff --git a/arch/x86/um/asm/barrier.h b/arch/x86/um/asm/barrier.h
index eb0654f39fd2..165be7f9a964 100644
--- a/arch/x86/um/asm/barrier.h
+++ b/arch/x86/um/asm/barrier.h
@@ -23,9 +23,6 @@ 
 
 #endif /* CONFIG_X86_32 */
 
-#define dma_rmb()	barrier()
-#define dma_wmb()	barrier()
-
 #include <asm-generic/barrier.h>
 
 #endif