From 1979b908b6e99cc24c1c0746060422f8778aa9d9 Mon Sep 17 00:00:00 2001 From: Pavel Dovgalyuk Date: Mon, 12 Jan 2015 15:00:43 +0300 Subject: [PATCH] cpus: consistently use QEMU_CLOCK_VIRTUAL_RT for icount_warp_rt timer Fix mismatch between timer_new_ms and timer_mod. Signed-off-by: Pavel Dovgalyuk Signed-off-by: Paolo Bonzini --- cpus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpus.c b/cpus.c index 2edb5cd807c6..3a5323b1fc58 100644 --- a/cpus.c +++ b/cpus.c @@ -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(); }