]> Git Repo - qemu.git/commitdiff
monitor: Switch from timer_new() to timer_new_ns()
authorMarkus Armbruster <[email protected]>
Thu, 15 Oct 2015 15:08:32 +0000 (17:08 +0200)
committerMarkus Armbruster <[email protected]>
Thu, 29 Oct 2015 13:34:45 +0000 (14:34 +0100)
We don't actually care for the scale, so we can just as well use the
simpler interface.

Signed-off-by: Markus Armbruster <[email protected]>
Message-Id: <1444921716[email protected]>
Reviewed-by: Eric Blake <[email protected]>
monitor.c

index ec4096b770c003e69b460543d4af5749fa79e983..c2aedbe0bcce25013670085ece6fbc9c7c99289d 100644 (file)
--- a/monitor.c
+++ b/monitor.c
@@ -545,10 +545,9 @@ monitor_qapi_event_throttle(QAPIEvent event, int64_t rate)
     assert(rate * SCALE_MS <= INT64_MAX);
     evstate->rate = rate * SCALE_MS;
     evstate->qdict = NULL;
-    evstate->timer = timer_new(QEMU_CLOCK_REALTIME,
-                               SCALE_MS,
-                               monitor_qapi_event_handler,
-                               evstate);
+    evstate->timer = timer_new_ns(QEMU_CLOCK_REALTIME,
+                                  monitor_qapi_event_handler,
+                                  evstate);
 }
 
 static void monitor_qapi_event_init(void)
This page took 0.027195 seconds and 4 git commands to generate.