Skip to content

Commit 851b6cb

Browse files
jmberg-intelrichardweinberger
authored andcommitted
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>
1 parent a30cc14 commit 851b6cb

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎arch/x86/um/asm/barrier.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323

2424
#endif /* CONFIG_X86_32 */
2525

26-
#define dma_rmb() barrier()
27-
#define dma_wmb() barrier()
28-
2926
#include <asm-generic/barrier.h>
3027

3128
#endif

0 commit comments

Comments
 (0)