x86/um: reuse asm-generic/barrier.h
On x86/um CONFIG_SMP is never defined. As a result, several macros match the asm-generic variant exactly. Drop the local definitions and pull in asm-generic/barrier.h instead. This is in preparation to refactoring this code area. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Richard Weinberger <richard@nod.at> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
This commit is contained in:
parent
fa083e28f8
commit
577f183acc
|
@ -36,13 +36,6 @@
|
||||||
#endif /* CONFIG_X86_PPRO_FENCE */
|
#endif /* CONFIG_X86_PPRO_FENCE */
|
||||||
#define dma_wmb() barrier()
|
#define dma_wmb() barrier()
|
||||||
|
|
||||||
#define smp_mb() barrier()
|
#include <asm-generic/barrier.h>
|
||||||
#define smp_rmb() barrier()
|
|
||||||
#define smp_wmb() barrier()
|
|
||||||
|
|
||||||
#define smp_store_mb(var, value) do { WRITE_ONCE(var, value); barrier(); } while (0)
|
|
||||||
|
|
||||||
#define read_barrier_depends() do { } while (0)
|
|
||||||
#define smp_read_barrier_depends() do { } while (0)
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue