diff mbox series

[v2,08/21] nds32/io: Remove useless definition of mmiowb()

Message ID 20190405135936.7266-9-will.deacon@arm.com
State Accepted
Commit 335b5c638bfd72b959b22c80f65dea3f614b6cca
Headers show
Series Remove Mysterious Macro Intended to Obscure Weird Behaviours (mmiowb()) | expand

Commit Message

Will Deacon April 5, 2019, 1:59 p.m. UTC
mmiowb() only makes sense for SMP platforms, so we can remove it
entirely for nds32.

Signed-off-by: Will Deacon <will.deacon@arm.com>

---
 arch/nds32/include/asm/io.h | 2 --
 1 file changed, 2 deletions(-)

-- 
2.11.0
diff mbox series

Patch

diff --git a/arch/nds32/include/asm/io.h b/arch/nds32/include/asm/io.h
index 71cd226d6863..5ef8ae5ba833 100644
--- a/arch/nds32/include/asm/io.h
+++ b/arch/nds32/include/asm/io.h
@@ -55,8 +55,6 @@  static inline u32 __raw_readl(const volatile void __iomem *addr)
 #define __iormb()               rmb()
 #define __iowmb()               wmb()
 
-#define mmiowb()        __asm__ __volatile__ ("msync all" : : : "memory");
-
 /*
  * {read,write}{b,w,l,q}_relaxed() are like the regular version, but
  * are not guaranteed to provide ordering against spinlocks or memory