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>
This commit is contained in:
parent
3df708eb48
commit
caa49adbcc
@ -293,6 +293,7 @@ static void fdt_add_timer_nodes(const VirtBoardInfo *vbi, int gictype)
|
|||||||
qemu_fdt_setprop_string(vbi->fdt, "/timer", "compatible",
|
qemu_fdt_setprop_string(vbi->fdt, "/timer", "compatible",
|
||||||
"arm,armv7-timer");
|
"arm,armv7-timer");
|
||||||
}
|
}
|
||||||
|
qemu_fdt_setprop(vbi->fdt, "/timer", "always-on", NULL, 0);
|
||||||
qemu_fdt_setprop_cells(vbi->fdt, "/timer", "interrupts",
|
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_S_EL1_IRQ, irqflags,
|
||||||
GIC_FDT_IRQ_TYPE_PPI, ARCH_TIMER_NS_EL1_IRQ, irqflags,
|
GIC_FDT_IRQ_TYPE_PPI, ARCH_TIMER_NS_EL1_IRQ, irqflags,
|
||||||
|
Loading…
Reference in New Issue
Block a user