]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
x86: reuse asm-generic/barrier.h
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 21 Dec 2015 07:22:18 +0000 (09:22 +0200)
committerSomasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Thu, 31 Aug 2017 17:26:20 +0000 (10:26 -0700)
Orabug: 26668113

As on most architectures, on x86 read_barrier_depends and
smp_read_barrier_depends are empty.  Drop the local definitions and pull
the generic ones from asm-generic/barrier.h instead: they are identical.

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: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
(cherry picked from commit 300b06d4555305dc227748674f75970f2f84c224)
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
Conflicts:
arch/x86/include/asm/barrier.h

arch/x86/include/asm/barrier.h

index 959e45b81fe29192b0f1c97a65e028e7314f603d..d89d0c52d50414cf595c7519df0b518341182cf6 100644 (file)
@@ -43,9 +43,6 @@
 #define set_mb(var, value) do { var = value; barrier(); } while (0)
 #endif /* SMP */
 
-#define read_barrier_depends()         do { } while (0)
-#define smp_read_barrier_depends()     do { } while (0)
-
 #if defined(CONFIG_X86_PPRO_FENCE)
 
 /*
@@ -101,5 +98,6 @@ static __always_inline void rdtsc_barrier(void)
        alternative_2("", "mfence", X86_FEATURE_MFENCE_RDTSC,
                          "lfence", X86_FEATURE_LFENCE_RDTSC);
 }
+#include <asm-generic/barrier.h>
 
 #endif /* _ASM_X86_BARRIER_H */