From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41805) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zmk95-0003t0-TZ for qemu-devel@nongnu.org; Thu, 15 Oct 2015 11:08:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zmk92-0002Fx-0O for qemu-devel@nongnu.org; Thu, 15 Oct 2015 11:08:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40028) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zmk91-0002FZ-Sk for qemu-devel@nongnu.org; Thu, 15 Oct 2015 11:08:39 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 6FFC4C0BFD31 for ; Thu, 15 Oct 2015 15:08:39 +0000 (UTC) From: Markus Armbruster Date: Thu, 15 Oct 2015 17:08:32 +0200 Message-Id: <1444921716-9511-4-git-send-email-armbru@redhat.com> In-Reply-To: <1444921716-9511-1-git-send-email-armbru@redhat.com> References: <1444921716-9511-1-git-send-email-armbru@redhat.com> Subject: [Qemu-devel] [PATCH 3/7] monitor: Switch from timer_new() to timer_new_ns() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: amit.shah@redhat.com, marcandre.lureau@redhat.com We don't actually care for the scale, so we can just as well use the simpler interface. Signed-off-by: Markus Armbruster --- monitor.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/monitor.c b/monitor.c index ca201fd..baffd76 100644 --- 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) -- 2.4.3