Revision 74475455 target-ppc/kvm_ppc.c

b/target-ppc/kvm_ppc.c
89 89
static void kvmppc_timer_hack(void *opaque)
90 90
{
91 91
    qemu_service_io();
92
    qemu_mod_timer(kvmppc_timer, qemu_get_clock(vm_clock) + kvmppc_timer_rate);
92
    qemu_mod_timer(kvmppc_timer, qemu_get_clock_ns(vm_clock) + kvmppc_timer_rate);
93 93
}
94 94

  
95 95
void kvmppc_init(void)
......
99 99
     * run. So, until Qemu gains IO threads, we create this timer to ensure
100 100
     * that the device model gets a chance to run. */
101 101
    kvmppc_timer_rate = get_ticks_per_sec() / 10;
102
    kvmppc_timer = qemu_new_timer(vm_clock, &kvmppc_timer_hack, NULL);
103
    qemu_mod_timer(kvmppc_timer, qemu_get_clock(vm_clock) + kvmppc_timer_rate);
102
    kvmppc_timer = qemu_new_timer_ns(vm_clock, &kvmppc_timer_hack, NULL);
103
    qemu_mod_timer(kvmppc_timer, qemu_get_clock_ns(vm_clock) + kvmppc_timer_rate);
104 104
}
105 105

  

Also available in: Unified diff