]> git.baikalelectronics.ru Git - kernel.git/commit
arm64/kvm: use {read,write}_sysreg()
authorMark Rutland <mark.rutland@arm.com>
Thu, 8 Sep 2016 12:55:37 +0000 (13:55 +0100)
committerWill Deacon <will.deacon@arm.com>
Fri, 9 Sep 2016 10:42:27 +0000 (11:42 +0100)
commit7fcf4624a8f2da9ef29059e3e85b964c290cdc49
tree89f52e9a434a0060f050567301d2252cfd09c475
parent30a21b20e959b99fbfe13926bac91cde1b6ddc42
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>
arch/arm64/include/asm/virt.h
arch/arm64/kvm/sys_regs.c
arch/arm64/kvm/sys_regs_generic_v8.c