[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1486322486-8024-22-git-send-email-w@1wt.eu>
Date: Sun, 5 Feb 2017 20:20:38 +0100
From: Willy Tarreau <w@....eu>
To: linux-kernel@...r.kernel.org, stable@...r.kernel.org,
linux@...ck-us.net
Cc: "Michael S. Tsirkin" <mst@...hat.com>, Willy Tarreau <w@....eu>
Subject: [PATCH 3.10 051/319] x86/um: reuse asm-generic/barrier.h
From: "Michael S. Tsirkin" <mst@...hat.com>
commit 577f183acc88645eae116326cc2203dc88ea730c 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: Michael S. Tsirkin <mst@...hat.com>
Acked-by: Arnd Bergmann <arnd@...db.de>
Acked-by: Richard Weinberger <richard@....at>
Acked-by: Peter Zijlstra (Intel) <peterz@...radead.org>
Signed-off-by: Willy Tarreau <w@....eu>
---
arch/x86/um/asm/barrier.h | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/arch/x86/um/asm/barrier.h b/arch/x86/um/asm/barrier.h
index 7d01b8c..1da6bb4 100644
--- a/arch/x86/um/asm/barrier.h
+++ b/arch/x86/um/asm/barrier.h
@@ -51,11 +51,7 @@
#else /* CONFIG_SMP */
-#define smp_mb() barrier()
-#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)
+#include <asm-generic/barrier.h>
#endif /* CONFIG_SMP */
--
2.8.0.rc2.1.gbe9624a
Powered by blists - more mailing lists