arm64: barriers: make use of barrier options with explicit barriers
authorWill Deacon <will.deacon@arm.com>
Fri, 2 May 2014 15:24:10 +0000 (16:24 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:18:46 +0000 (17:18 +0200)
When calling our low-level barrier macros directly, we can often suffice
with more relaxed behaviour than the default "all accesses, full system"
option.

This patch updates the users of dsb() to specify the option which they
actually require.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit 98f7685ee69f871ba991089cb9685f0da07517ea)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm64/kvm/sys_regs.c

index 03244582bc555af4b303fca4370890e278114d16..c59a1bdab5eb6f36ae9507abff72de2dc17acf14 100644 (file)
@@ -71,13 +71,13 @@ static u32 get_ccsidr(u32 csselr)
 static void do_dc_cisw(u32 val)
 {
        asm volatile("dc cisw, %x0" : : "r" (val));
-       dsb();
+       dsb(ish);
 }
 
 static void do_dc_csw(u32 val)
 {
        asm volatile("dc csw, %x0" : : "r" (val));
-       dsb();
+       dsb(ish);
 }
 
 /* See note at ARM ARM B1.14.4 */