diff options
author | Mark Rutland <mark.rutland@arm.com> | 2016-09-08 15:55:37 +0300 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2016-09-09 13:42:27 +0300 |
commit | 1f3d8699be82583c713e2a1099c597a740ebaf4d (patch) | |
tree | 89f52e9a434a0060f050567301d2252cfd09c475 /net | |
parent | d0a69d9f388dcd37e9bf2d8d7d4a83b87822ffa1 (diff) | |
download | linux-1f3d8699be82583c713e2a1099c597a740ebaf4d.tar.xz |
arm64/kvm: use {read,write}_sysreg()
A while back we added {read,write}_sysreg accessors to handle accesses
to system registers, without the usual boilerplate asm volatile,
temporary variable, etc.
This patch makes use of these in the arm64 KVM code to make the code
shorter and clearer.
At the same time, a comment style violation next to a system register
access is fixed up in reset_pmcr, and comments describing whether
operations are reads or writes are removed as this is now painfully
obvious.
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions