Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

um: Use real DMA barriers

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>

authored by

Johannes Berg and committed by
Richard Weinberger
851b6cb1 a30cc14f

-3
-3
arch/x86/um/asm/barrier.h
··· 23 23 24 24 #endif /* CONFIG_X86_32 */ 25 25 26 - #define dma_rmb() barrier() 27 - #define dma_wmb() barrier() 28 - 29 26 #include <asm-generic/barrier.h> 30 27 31 28 #endif