All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] hw/arm/virt: Add always-on property to the virt board timer
@ 2016-01-19 11:49 Christoffer Dall
  2016-01-19 12:37 ` Andrew Jones
  2016-01-19 15:21 ` Peter Maydell
  0 siblings, 2 replies; 14+ messages in thread
From: Christoffer Dall @ 2016-01-19 11:49 UTC (permalink / raw)
  To: qemu-devel; +Cc: Christoffer Dall

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>
---
 hw/arm/virt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 05f9087..265fe9a 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -291,6 +291,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,
-- 
2.1.2.330.g565301e.dirty

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2016-01-20 17:08 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-19 11:49 [Qemu-devel] [PATCH] hw/arm/virt: Add always-on property to the virt board timer Christoffer Dall
2016-01-19 12:37 ` Andrew Jones
2016-01-19 12:43   ` Christoffer Dall
2016-01-19 13:32     ` Andrew Jones
2016-01-19 13:43       ` Marc Zyngier
2016-01-19 14:07         ` Andrew Jones
2016-01-19 18:48         ` Andrew Jones
2016-01-20 14:01           ` Andrew Jones
2016-01-20 14:28             ` Marc Zyngier
2016-01-20 15:06               ` Andrew Jones
2016-01-20 16:20                 ` Marc Zyngier
2016-01-20 16:47                   ` Andrew Jones
2016-01-20 17:08                     ` Marc Zyngier
2016-01-19 15:21 ` Peter Maydell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.