qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [RFC PATCH v7 11/21] timer: fix usage of clock functions


From: Pavel Dovgalyuk
Subject: [Qemu-devel] [RFC PATCH v7 11/21] timer: fix usage of clock functions
Date: Mon, 12 Jan 2015 15:00:49 +0300
User-agent: StGit/0.16

This patch replaces calling of get_clock_realtime() everywhere
except the timer module. All calls are replaced with host clock requests.
Patch also replaces get_clock() calls with realtime clock requests.
Usage of this interface simplifies implementation of record/replay.

Signed-off-by: Pavel Dovgalyuk <address@hidden>
---
 pc-bios/s390-ccw/virtio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pc-bios/s390-ccw/virtio.c b/pc-bios/s390-ccw/virtio.c
index c0540d1..f1867ba 100644
--- a/pc-bios/s390-ccw/virtio.c
+++ b/pc-bios/s390-ccw/virtio.c
@@ -164,7 +164,7 @@ static u64 get_clock(void)
 
 static ulong get_second(void)
 {
-    return (get_clock() >> 12) / 1000000;
+    return (qemu_clock_get_ns(QEMU_CLOCK_REALTIME) >> 12) / 1000000;
 }
 
 /*




reply via email to

[Prev in Thread] Current Thread [Next in Thread]