Revision 7bd427d8 hw/omap1.c

b/hw/omap1.c
2802 2802
    s->pm_am = 0;
2803 2803
    s->auto_comp = 0;
2804 2804
    s->round = 0;
2805
    s->tick = qemu_get_clock(rt_clock);
2805
    s->tick = qemu_get_clock_ms(rt_clock);
2806 2806
    memset(&s->alarm_tm, 0, sizeof(s->alarm_tm));
2807 2807
    s->alarm_tm.tm_mday = 0x01;
2808 2808
    s->status = 1 << 7;
......
2822 2822

  
2823 2823
    s->irq = irq[0];
2824 2824
    s->alarm = irq[1];
2825
    s->clk = qemu_new_timer(rt_clock, omap_rtc_tick, s);
2825
    s->clk = qemu_new_timer_ms(rt_clock, omap_rtc_tick, s);
2826 2826

  
2827 2827
    omap_rtc_reset(s);
2828 2828

  
......
3399 3399
    struct omap_lpg_s *s = opaque;
3400 3400

  
3401 3401
    if (s->cycle)
3402
        qemu_mod_timer(s->tm, qemu_get_clock(rt_clock) + s->period - s->on);
3402
        qemu_mod_timer(s->tm, qemu_get_clock_ms(rt_clock) + s->period - s->on);
3403 3403
    else
3404
        qemu_mod_timer(s->tm, qemu_get_clock(rt_clock) + s->on);
3404
        qemu_mod_timer(s->tm, qemu_get_clock_ms(rt_clock) + s->on);
3405 3405

  
3406 3406
    s->cycle = !s->cycle;
3407 3407
    printf("%s: LED is %s\n", __FUNCTION__, s->cycle ? "on" : "off");
......
3516 3516
    struct omap_lpg_s *s = (struct omap_lpg_s *)
3517 3517
            qemu_mallocz(sizeof(struct omap_lpg_s));
3518 3518

  
3519
    s->tm = qemu_new_timer(rt_clock, omap_lpg_tick, s);
3519
    s->tm = qemu_new_timer_ms(rt_clock, omap_lpg_tick, s);
3520 3520

  
3521 3521
    omap_lpg_reset(s);
3522 3522

  

Also available in: Unified diff