ARM: KVM: vgic: simplify vgic_get_target_reg
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 29 Aug 2013 10:08:22 +0000 (11:08 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:18:02 +0000 (17:18 +0200)
commit1752d0c7e51f1a5e8d1f021d6b4eef1845c6da06
treedb3dbca6ba812cc155b797e4993314b93e920f91
parent4ace5f4542de34fb99068fa2285947d6bbfee26a
ARM: KVM: vgic: simplify vgic_get_target_reg

vgic_get_target_reg is quite complicated, for no good reason.
Actually, it is fairly easy to write it in a much more efficient
way by using the target CPU array instead of the bitmap.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
(cherry picked from commit 986af8e0789a41ac4844e6eefed4a33e86524918)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
virt/kvm/arm/vgic.c