.. | .. |
---|
2 | 2 | #ifndef _ASM_UM_BARRIER_H_ |
---|
3 | 3 | #define _ASM_UM_BARRIER_H_ |
---|
4 | 4 | |
---|
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> |
---|
13 | 6 | |
---|
14 | 7 | /* |
---|
15 | 8 | * Force strict CPU ordering. |
---|
.. | .. |
---|
29 | 22 | #define wmb() asm volatile("sfence" : : : "memory") |
---|
30 | 23 | |
---|
31 | 24 | #endif /* CONFIG_X86_32 */ |
---|
32 | | - |
---|
33 | | -#define dma_rmb() barrier() |
---|
34 | | -#define dma_wmb() barrier() |
---|
35 | 25 | |
---|
36 | 26 | #include <asm-generic/barrier.h> |
---|
37 | 27 | |
---|