ARM: KVM: Switch the CP reg search to be a binary search
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 21 Jan 2016 17:34:22 +0000 (17:34 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 29 Feb 2016 18:34:22 +0000 (18:34 +0000)
commitd06a5440a02cf8ff67b1cd4ee75a30b1b1c66cff
treeaf433aa542ade72a49d2e3e1a3e8977f4a12b2a5
parentf1d67d4ac79aef6de709d7a21b35851685a1d3ee
ARM: KVM: Switch the CP reg search to be a binary search

Doing a linear search is a bit silly when we can do a binary search.
Not that we trap that so many things that it has become a burden yet,
but it makes sense to align it with the arm64 code.

Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/kvm/coproc.c