qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] rename get_clock_realtime
@ 2012-01-20 11:05 Paolo Bonzini
  2012-01-20 11:17 ` Jan Kiszka
  0 siblings, 1 reply; 6+ messages in thread
From: Paolo Bonzini @ 2012-01-20 11:05 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial

get_clock_realtime accesses the host_clock, not the rt_clock.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 qemu-timer.c |    2 +-
 qemu-timer.h |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/qemu-timer.c b/qemu-timer.c
index cd026c6..4a14a6d 100644
--- a/qemu-timer.c
+++ b/qemu-timer.c
@@ -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) {
diff --git a/qemu-timer.h b/qemu-timer.h
index de17f3b..b180fca 100644
--- a/qemu-timer.h
+++ b/qemu-timer.h
@@ -93,7 +93,7 @@ static inline int64_t get_ticks_per_sec(void)
 }
 
 /* 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 +131,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
-- 
1.7.7.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-01-20 11:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-20 11:05 [Qemu-devel] [PATCH] rename get_clock_realtime Paolo Bonzini
2012-01-20 11:17 ` Jan Kiszka
2012-01-20 11:26   ` Paolo Bonzini
2012-01-20 11:28     ` [Qemu-devel] [PATCH v2] " Paolo Bonzini
2012-01-20 11:29     ` [Qemu-devel] [PATCH] " Jan Kiszka
2012-01-20 11:39       ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).