diff options
author | Marc Zyngier <maz@kernel.org> | 2022-07-03 16:57:29 +0300 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2022-07-17 13:55:33 +0300 |
commit | b61fc0857a3ad4cdee44128ad13685033e237367 (patch) | |
tree | a08fc3992d72e47139d9df23ca1915e295fa291d /arch/x86/boot/vesa.h | |
parent | 5a420ed9646a934e983358aeba1bf3cd993d1cc5 (diff) | |
download | linux-b61fc0857a3ad4cdee44128ad13685033e237367.tar.xz |
KVM: arm64: vgic-v3: Simplify vgic_v3_has_cpu_sysregs_attr()
Finding out whether a sysreg exists has little to do with that
register being accessed, so drop the is_write parameter.
Also, the reg pointer is completely unused, and we're better off
just passing the attr pointer to the function.
This result in a small cleanup of the calling site, with a new
helper converting the vGIC view of a sysreg into the canonical
one (this is purely cosmetic, as the encoding is the same).
Reviewed-by: Reiji Watanabe <reijiw@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'arch/x86/boot/vesa.h')
0 files changed, 0 insertions, 0 deletions