MIPS: barrier: Remove fast_mb() Octeon #ifdef'ery
authorPaul Burton <paul.burton@mips.com>
Tue, 1 Oct 2019 21:53:11 +0000 (21:53 +0000)
committerPaul Burton <paul.burton@mips.com>
Mon, 7 Oct 2019 16:42:21 +0000 (09:42 -0700)
The definition of fast_mb() is the same in both the Octeon & non-Octeon
cases, so remove the duplication & define it only once.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@vger.kernel.org
Cc: Huacai Chen <chenhc@lemote.com>
Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: linux-kernel@vger.kernel.org
arch/mips/include/asm/barrier.h

index 8a5abc1c85a6dac112309e9c6393d7e13077dfcb..657ec01120a4ee55a19a07b18fe7d70c6e67813c 100644 (file)
@@ -38,6 +38,8 @@ static inline void wmb(void)
 }
 #define wmb wmb
 
+#define fast_mb()      __sync()
+
 #define __fast_iob()                           \
        __asm__ __volatile__(                   \
                ".set   push\n\t"               \
@@ -49,10 +51,8 @@ static inline void wmb(void)
                : "m" (*(int *)CKSEG1)          \
                : "memory")
 #ifdef CONFIG_CPU_CAVIUM_OCTEON
-# define fast_mb()     __sync()
 # define fast_iob()    do { } while (0)
 #else /* ! CONFIG_CPU_CAVIUM_OCTEON */
-# define fast_mb()     __sync()
 # ifdef CONFIG_SGI_IP28
 #  define fast_iob()                           \
        __asm__ __volatile__(                   \