Skip to content

Commit

Permalink
MIPS: barrier: Remove fast_mb() Octeon #ifdef'ery
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
paulburton committed Oct 7, 2019
1 parent 05e6da7 commit 5c12a6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/mips/include/asm/barrier.h
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand All @@ -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__( \
Expand Down

0 comments on commit 5c12a6e

Please sign in to comment.