forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-09-20 cf4ce59b3b70238352c7f1729f0f7223214828ad
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