aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clocksource/arm_arch_timer.c
diff options
context:
space:
mode:
authorJulien Grall <[email protected]>2016-04-11 15:32:52 +0000
committerChristoffer Dall <[email protected]>2016-05-03 10:54:21 +0000
commitd9b5e41591ca6bc6678e287b5ffe7fac2e07436e (patch)
treefc3c9539ce761762f1dc2af3345c0ca5be1a9697 /drivers/clocksource/arm_arch_timer.c
parentclocksource: arm_arch_timer: Gather KVM specific information in a structure (diff)
downloadkernel-d9b5e41591ca6bc6678e287b5ffe7fac2e07436e.tar.gz
kernel-d9b5e41591ca6bc6678e287b5ffe7fac2e07436e.zip
clocksource: arm_arch_timer: Extend arch_timer_kvm_info to get the virtual IRQ
Currently, the firmware table is 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, extend arch_timer_kvm_info to get the virtual IRQ. Note that the KVM code will be modified in a subsequent patch. Signed-off-by: Julien Grall <[email protected]> Acked-by: Christoffer Dall <[email protected]> Signed-off-by: Christoffer Dall <[email protected]>
Diffstat (limited to 'drivers/clocksource/arm_arch_timer.c')
-rw-r--r--drivers/clocksource/arm_arch_timer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c
index 62bdfe7067e3..bb58224eea36 100644
--- a/drivers/clocksource/arm_arch_timer.c
+++ b/drivers/clocksource/arm_arch_timer.c
@@ -750,6 +750,8 @@ static void __init arch_timer_init(void)
arch_timer_register();
arch_timer_common_init();
+
+ arch_timer_kvm_info.virtual_irq = arch_timer_ppi[VIRT_PPI];
}
static void __init arch_timer_of_init(struct device_node *np)