hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/x86/um/asm/barrier.h
....@@ -2,14 +2,7 @@
22 #ifndef _ASM_UM_BARRIER_H_
33 #define _ASM_UM_BARRIER_H_
44
5
-#include <asm/asm.h>
6
-#include <asm/segment.h>
7
-#include <asm/cpufeatures.h>
8
-#include <asm/cmpxchg.h>
9
-#include <asm/nops.h>
10
-
11
-#include <linux/kernel.h>
12
-#include <linux/irqflags.h>
5
+#include <asm/alternative.h>
136
147 /*
158 * Force strict CPU ordering.
....@@ -29,9 +22,6 @@
2922 #define wmb() asm volatile("sfence" : : : "memory")
3023
3124 #endif /* CONFIG_X86_32 */
32
-
33
-#define dma_rmb() barrier()
34
-#define dma_wmb() barrier()
3525
3626 #include <asm-generic/barrier.h>
3727