summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorChristoffer Dall <christoffer.dall@linaro.org>2016-01-21 14:15:07 +0000
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:28:26 -0600
commit6527f66b0f24b543eeaff8e21a043bbe7714e046 (patch)
tree9538d266d9ad6f3830d23663ecb93195f73281b4 /hw
parent26b59fb4e1006d30bff6baaf341c49bb74b4b06d (diff)
downloadhqemu-6527f66b0f24b543eeaff8e21a043bbe7714e046.zip
hqemu-6527f66b0f24b543eeaff8e21a043bbe7714e046.tar.gz
hw/arm/virt: Add always-on property to the virt board timer
The virt board has an arch timer, which is always on. Emit the "always-on" property to indicate to Linux that it can switch off the periodic timer and reduces the amount of interrupts injected into a guest. Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org> Reviewed-by: Andrew Jones <drjones@redhat.com> Message-id: 1453204158-11412-1-git-send-email-christoffer.dall@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw')
-rw-r--r--hw/arm/virt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 134f452..15658f4 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -293,6 +293,7 @@ static void fdt_add_timer_nodes(const VirtBoardInfo *vbi, int gictype)
qemu_fdt_setprop_string(vbi->fdt, "/timer", "compatible",
"arm,armv7-timer");
}
+ qemu_fdt_setprop(vbi->fdt, "/timer", "always-on", NULL, 0);
qemu_fdt_setprop_cells(vbi->fdt, "/timer", "interrupts",
GIC_FDT_IRQ_TYPE_PPI, ARCH_TIMER_S_EL1_IRQ, irqflags,
GIC_FDT_IRQ_TYPE_PPI, ARCH_TIMER_NS_EL1_IRQ, irqflags,
OpenPOWER on IntegriCloud