Commit 185d7d7a authored by Paul Burton's avatar Paul Burton

MIPS: barrier: Clean up sync_ginv()

Use the new __SYNC() infrastructure to implement sync_ginv(), for
consistency with much of the rest of the asm/barrier.h.
Signed-off-by: default avatarPaul Burton <paul.burton@mips.com>
Cc: linux-mips@vger.kernel.org
Cc: Huacai Chen <chenhc@lemote.com>
Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: linux-kernel@vger.kernel.org
parent fe0065e5
...@@ -163,7 +163,7 @@ static inline void wmb(void) ...@@ -163,7 +163,7 @@ static inline void wmb(void)
static inline void sync_ginv(void) static inline void sync_ginv(void)
{ {
asm volatile("sync\t%0" :: "i"(__SYNC_ginv)); asm volatile(__SYNC(ginv, always));
} }
#include <asm-generic/barrier.h> #include <asm-generic/barrier.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment