OSDN Git Service

nds32/io: Remove useless definition of mmiowb()
authorWill Deacon <will.deacon@arm.com>
Fri, 22 Feb 2019 13:07:37 +0000 (13:07 +0000)
committerWill Deacon <will.deacon@arm.com>
Mon, 8 Apr 2019 11:00:06 +0000 (12:00 +0100)
mmiowb() only makes sense for SMP platforms, so remove it entirely for
nds32.

Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Will Deacon <will.deacon@arm.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