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 <pavel.dovga...@ispras.ru> --- 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; } /*