OSDN Git Service

nds32/io: Remove useless definition of mmiowb()
authorWill Deacon <will.deacon@arm.com>
Fri, 1 Mar 2019 14:03:35 +0000 (14:03 +0000)
committerGreentime Hu <greentime@andestech.com>
Tue, 7 May 2019 09:52:09 +0000 (17:52 +0800)
mmiowb() only makes sense for SMP platforms, so we can remove it
entirely for nds32.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Acked-by: Greentime Hu <greentime@andestech.com>
Signed-off-by: Greentime Hu <greentime@andestech.com>
arch/nds32/include/asm/io.h

index 71cd226..5ef8ae5 100644 (file)
@@ -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