diff options
author | Christoffer Dall <cdall@linaro.org> | 2017-08-02 16:28:42 +0200 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2017-08-03 15:47:36 +0100 |
commit | 3af4e414af5ce014d1f88cd816d997048298b310 (patch) | |
tree | 91a2fbd1caccec08f58272dc19037bc98318442b /drivers/cpufreq/p4-clockmod.c | |
parent | 7e5a672289c9754d07e1c3b33649786d3d70f5e4 (diff) | |
download | op-kernel-dev-3af4e414af5ce014d1f88cd816d997048298b310.zip op-kernel-dev-3af4e414af5ce014d1f88cd816d997048298b310.tar.gz |
KVM: arm/arm64: vgic: Use READ_ONCE fo cmpxchg
There is a small chance that the compiler could generate separate loads
for the dist->propbaser which could be modified from another CPU. As we
want to make sure we atomically update the entire value, and don't race
with other updates, guarantee that the cmpxchg operation compares
against the original value.
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Christoffer Dall <cdall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'drivers/cpufreq/p4-clockmod.c')
0 files changed, 0 insertions, 0 deletions