Commit c70798ff authored by Michael S. Tsirkin's avatar Michael S. Tsirkin Committed by Jiri Slaby

x86/um: reuse asm-generic/barrier.h

commit 577f183a upstream.

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: default avatarMichael S. Tsirkin <mst@redhat.com>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Acked-by: default avatarRichard Weinberger <richard@nod.at>
Acked-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent afe98b3b
...@@ -51,11 +51,7 @@ ...@@ -51,11 +51,7 @@
#else /* CONFIG_SMP */ #else /* CONFIG_SMP */
#define smp_mb() barrier() #include <asm-generic/barrier.h>
#define smp_rmb() barrier()
#define smp_wmb() barrier()
#define smp_read_barrier_depends() do { } while (0)
#define set_mb(var, value) do { var = value; barrier(); } while (0)
#endif /* CONFIG_SMP */ #endif /* CONFIG_SMP */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment