From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZroFg-0004mt-8W for qemu-devel@nongnu.org; Thu, 29 Oct 2015 10:32:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZroFX-0001CX-Pi for qemu-devel@nongnu.org; Thu, 29 Oct 2015 10:32:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59509) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZroFX-0001CK-LS for qemu-devel@nongnu.org; Thu, 29 Oct 2015 10:32:19 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 65130C0AEE31 for ; Thu, 29 Oct 2015 14:32:19 +0000 (UTC) Received: from blackfin.pond.sub.org (ovpn-116-44.ams2.redhat.com [10.36.116.44]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t9TEWHkG011420 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 29 Oct 2015 10:32:18 -0400 From: Markus Armbruster Date: Thu, 29 Oct 2015 15:32:09 +0100 Message-Id: <1446129134-26379-10-git-send-email-armbru@redhat.com> In-Reply-To: <1446129134-26379-1-git-send-email-armbru@redhat.com> References: <1446129134-26379-1-git-send-email-armbru@redhat.com> Subject: [Qemu-devel] [PULL v3 09/14] 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 We don't actually care for the scale, so we can just as well use the simpler interface. Signed-off-by: Markus Armbruster Message-Id: <1444921716-9511-4-git-send-email-armbru@redhat.com> Reviewed-by: Eric Blake --- monitor.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/monitor.c b/monitor.c index ec4096b..c2aedbe 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