@@ -436,7 +436,7 @@ int64_t qemu_get_clock_ns(QEMUClock *clock)
return cpu_get_clock();
}
case QEMU_CLOCK_HOST:
- now = get_clock_realtime();
+ now = get_clock_host();
last = clock->last;
clock->last = now;
if (now < last) {
@@ -92,8 +92,7 @@ static inline int64_t get_ticks_per_sec(void)
return 1000000000LL;
}
-/* real time host monotonic timer */
-static inline int64_t get_clock_realtime(void)
+static inline int64_t get_clock_host(void)
{
struct timeval tv;
@@ -131,7 +130,7 @@ static inline int64_t get_clock(void)
{
/* XXX: using gettimeofday leads to problems if the date
changes, so it should be avoided. */
- return get_clock_realtime();
+ return get_clock_host();
}
}
#endif
get_clock_realtime accesses the host_clock, not the rt_clock. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> --- v1->v2: remove incorrect comment qemu-timer.c | 2 +- qemu-timer.h | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-)