projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05e6da7
)
MIPS: barrier: Remove fast_mb() Octeon #ifdef'ery
author
Paul Burton
<
[email protected]
>
Tue, 1 Oct 2019 21:53:11 +0000
(21:53 +0000)
committer
Paul Burton
<
[email protected]
>
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 <
[email protected]
>
Cc:
[email protected]
Cc: Huacai Chen <
[email protected]
>
Cc: Jiaxun Yang <
[email protected]
>
Cc:
[email protected]
arch/mips/include/asm/barrier.h
patch
|
blob
|
history
diff --git
a/arch/mips/include/asm/barrier.h
b/arch/mips/include/asm/barrier.h
index 8a5abc1c85a6dac112309e9c6393d7e13077dfcb..657ec01120a4ee55a19a07b18fe7d70c6e67813c 100644
(file)
--- a/
arch/mips/include/asm/barrier.h
+++ b/
arch/mips/include/asm/barrier.h
@@
-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__( \