summaryrefslogtreecommitdiff
path: root/include/clocksource
diff options
context:
space:
mode:
authorJulien Grall <julien.grall@arm.com>2016-04-11 18:32:52 +0300
committerChristoffer Dall <christoffer.dall@linaro.org>2016-05-03 13:54:21 +0300
commitd9b5e41591ca6bc6678e287b5ffe7fac2e07436e (patch)
treefc3c9539ce761762f1dc2af3345c0ca5be1a9697 /include/clocksource
parentb4d6ce9776e0fb773418efe8bc81d8c5ccca3493 (diff)
downloadlinux-d9b5e41591ca6bc6678e287b5ffe7fac2e07436e.tar.xz
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 <julien.grall@arm.com> Acked-by: Christoffer Dall <christoffer.dall@linaro.org> Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Diffstat (limited to 'include/clocksource')
-rw-r--r--include/clocksource/arm_arch_timer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/clocksource/arm_arch_timer.h b/include/clocksource/arm_arch_timer.h
index 9101ed6b5550..9dd996a67e9e 100644
--- a/include/clocksource/arm_arch_timer.h
+++ b/include/clocksource/arm_arch_timer.h
@@ -51,6 +51,7 @@ enum arch_timer_reg {
struct arch_timer_kvm_info {
struct timecounter timecounter;
+ int virtual_irq;
};
#ifdef CONFIG_ARM_ARCH_TIMER