Revision 74475455 hw/mpcore.c

b/hw/mpcore.c
63 63
    if (s->count == 0)
64 64
        return;
65 65
    if (restart)
66
        s->tick = qemu_get_clock(vm_clock);
66
        s->tick = qemu_get_clock_ns(vm_clock);
67 67
    s->tick += (int64_t)s->count * mpcore_timer_scale(s);
68 68
    qemu_mod_timer(s->timer, s->tick);
69 69
}
......
92 92
        if (((s->control & 1) == 0) || (s->count == 0))
93 93
            return 0;
94 94
        /* Slow and ugly, but hopefully won't happen too often.  */
95
        val = s->tick - qemu_get_clock(vm_clock);
95
        val = s->tick - qemu_get_clock_ns(vm_clock);
96 96
        val /= mpcore_timer_scale(s);
97 97
        if (val < 0)
98 98
            val = 0;
......
145 145
{
146 146
    s->id = id;
147 147
    s->mpcore = mpcore;
148
    s->timer = qemu_new_timer(vm_clock, mpcore_timer_tick, s);
148
    s->timer = qemu_new_timer_ns(vm_clock, mpcore_timer_tick, s);
149 149
}
150 150

  
151 151

  

Also available in: Unified diff