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: Paul 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
This commit is contained in:
Paul Burton 2019-10-01 21:53:14 +00:00
parent fe0065e562
commit 185d7d7a58
No known key found for this signature in database
GPG Key ID: 3EA79FACB57500DD
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ static inline void wmb(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>