aboutsummaryrefslogtreecommitdiff
path: root/cpus.c
diff options
context:
space:
mode:
authorPavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>2015-01-12 15:00:43 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2015-01-14 10:38:58 +0100
commit1979b908b6e99cc24c1c0746060422f8778aa9d9 (patch)
tree8419263576989507b5853de8b9b6e91e5a6ff77b /cpus.c
parentf186aa976bab11130af7299b07f7fafd258a63f1 (diff)
downloadqemu-1979b908b6e99cc24c1c0746060422f8778aa9d9.zip
qemu-1979b908b6e99cc24c1c0746060422f8778aa9d9.tar.gz
qemu-1979b908b6e99cc24c1c0746060422f8778aa9d9.tar.bz2
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 <Pavel.Dovgaluk@ispras.ru> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'cpus.c')
-rw-r--r--cpus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpus.c b/cpus.c
index 2edb5cd..3a5323b 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();
}