KVM: arm/arm64: arch_timer: Rely on the arch timer to parse the firmware tables
authorJulien Grall <julien.grall@arm.com>
Mon, 11 Apr 2016 15:32:58 +0000 (16:32 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Tue, 3 May 2016 10:54:21 +0000 (12:54 +0200)
commit29c2d6ff4cf9af6bcbba3a76aae1d5cacd5da16b
treec21cc3baf6dfdbe088a1ee8047d47aca226ea37a
parent1839e576968f34b9a31da9f0033f8de12a1c9de6
KVM: arm/arm64: arch_timer: Rely on the arch timer to parse the firmware tables

The firmware table is currently parsed by the virtual timer code in
order to retrieve the virtual timer interrupt. However, this is already
done by the arch timer driver.

To avoid code duplication, use the newly function arch_timer_get_kvm_info()
which return all the information required by the virtual timer code.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
virt/kvm/arm/arch_timer.c