]> Git Repo - qemu.git/blobdiff - hw/timer/puv3_ost.c
i2c: Add asserts for second smbus i2c_start_transfer()
[qemu.git] / hw / timer / puv3_ost.c
index fa9eefd9256c8faead9298bb3d880a5c1703eb34..0b3d717e60861c4590ac101f73db90477265df29 100644 (file)
@@ -8,6 +8,7 @@
  * published by the Free Software Foundation, or any later version.
  * See the COPYING file in the top-level directory.
  */
+#include "qemu/osdep.h"
 #include "hw/sysbus.h"
 #include "hw/ptimer.h"
 #include "qemu/main-loop.h"
@@ -124,7 +125,7 @@ static int puv3_ost_init(SysBusDevice *dev)
     sysbus_init_irq(dev, &s->irq);
 
     s->bh = qemu_bh_new(puv3_ost_tick, s);
-    s->ptimer = ptimer_init(s->bh);
+    s->ptimer = ptimer_init(s->bh, PTIMER_POLICY_DEFAULT);
     ptimer_set_freq(s->ptimer, 50 * 1000 * 1000);
 
     memory_region_init_io(&s->iomem, OBJECT(s), &puv3_ost_ops, s, "puv3_ost",
This page took 0.02438 seconds and 4 git commands to generate.