diff options
author | Will Deacon <will.deacon@arm.com> | 2014-05-02 11:24:10 -0400 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2014-05-09 12:03:15 -0400 |
commit | 98f7685ee69f871ba991089cb9685f0da07517ea (patch) | |
tree | f62bfc6c13d2e54c70349f47f85438f8d596fe36 /arch/arm64/kvm | |
parent | fa48e6f780a681cdbc7820e33259edfe1a79b9e3 (diff) |
arm64: barriers: make use of barrier options with explicit barriers
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>
Diffstat (limited to 'arch/arm64/kvm')
-rw-r--r-- | arch/arm64/kvm/sys_regs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm64/kvm/sys_regs.c b/arch/arm64/kvm/sys_regs.c index 03244582bc55..c59a1bdab5eb 100644 --- a/arch/arm64/kvm/sys_regs.c +++ b/arch/arm64/kvm/sys_regs.c | |||
@@ -71,13 +71,13 @@ static u32 get_ccsidr(u32 csselr) | |||
71 | static void do_dc_cisw(u32 val) | 71 | static void do_dc_cisw(u32 val) |
72 | { | 72 | { |
73 | asm volatile("dc cisw, %x0" : : "r" (val)); | 73 | asm volatile("dc cisw, %x0" : : "r" (val)); |
74 | dsb(); | 74 | dsb(ish); |
75 | } | 75 | } |
76 | 76 | ||
77 | static void do_dc_csw(u32 val) | 77 | static void do_dc_csw(u32 val) |
78 | { | 78 | { |
79 | asm volatile("dc csw, %x0" : : "r" (val)); | 79 | asm volatile("dc csw, %x0" : : "r" (val)); |
80 | dsb(); | 80 | dsb(ish); |
81 | } | 81 | } |
82 | 82 | ||
83 | /* See note at ARM ARM B1.14.4 */ | 83 | /* See note at ARM ARM B1.14.4 */ |