Skip to content

Commit

Permalink
cpus: consistently use QEMU_CLOCK_VIRTUAL_RT for icount_warp_rt timer
Browse files Browse the repository at this point in the history
Fix mismatch between timer_new_ms and timer_mod.

Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
Dovgalyuk authored and bonzini committed Jan 14, 2015
1 parent f186aa9 commit 1979b90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpus.c
Expand Up @@ -324,7 +324,7 @@ static void icount_adjust(void)
static void icount_adjust_rt(void *opaque)
{
timer_mod(icount_rt_timer,
qemu_clock_get_ms(QEMU_CLOCK_REALTIME) + 1000);
qemu_clock_get_ms(QEMU_CLOCK_VIRTUAL_RT) + 1000);
icount_adjust();
}

Expand Down

0 comments on commit 1979b90

Please sign in to comment.