From patchwork Fri Sep 11 12:01:31 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 33453 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by bilbo.ozlabs.org (Postfix) with ESMTPS id 3DD86B707B for ; Fri, 11 Sep 2009 22:51:48 +1000 (EST) Received: from localhost ([127.0.0.1]:59894 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mm5bN-0000NB-9o for incoming@patchwork.ozlabs.org; Fri, 11 Sep 2009 08:51:45 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mm4rj-0005iG-Fi for qemu-devel@nongnu.org; Fri, 11 Sep 2009 08:04:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mm4rd-0005gh-UZ for qemu-devel@nongnu.org; Fri, 11 Sep 2009 08:04:34 -0400 Received: from [199.232.76.173] (port=35057 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mm4rd-0005gN-2k for qemu-devel@nongnu.org; Fri, 11 Sep 2009 08:04:29 -0400 Received: from thoth.sbs.de ([192.35.17.2]:17276) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mm4rc-0007VP-4Q for qemu-devel@nongnu.org; Fri, 11 Sep 2009 08:04:28 -0400 Received: from mail3.siemens.de (localhost [127.0.0.1]) by thoth.sbs.de (8.12.11.20060308/8.12.11) with ESMTP id n8BC4Pu5012310; Fri, 11 Sep 2009 14:04:25 +0200 Received: from [139.25.109.167] (mchn012c.ww002.siemens.net [139.25.109.167] (may be forged)) by mail3.siemens.de (8.12.11.20060308/8.12.11) with ESMTP id n8BC4OXL007342; Fri, 11 Sep 2009 14:04:25 +0200 Resent-From: Jan Kiszka Resent-To: Anthony Liguori Resent-Cc: qemu-devel , Glauber Costa , Blue Swirl , Dor Laor , Jamie Lokier Resent-Date: Fri, 11 Sep 2009 14:03:00 +0200 Resent-Message-Id: <4AAA3C74.4000903@siemens.com> Resent-User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 From: Jan Kiszka To: Anthony Liguori Date: Fri, 11 Sep 2009 14:01:31 +0200 Message-ID: <20090911120131.25269.28803.stgit@mchn012c.ww002.siemens.net> In-Reply-To: <20090911120130.25269.86775.stgit@mchn012c.ww002.siemens.net> References: <20090911120130.25269.86775.stgit@mchn012c.ww002.siemens.net> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 Resent-Date: Fri, 11 Sep 2009 08:04:33 -0400 Cc: Blue Swirl , Glauber Costa , Dor Laor , qemu-devel@nongnu.org Subject: [Qemu-devel] [PATCH v2 2/4] win32: Drop dead dyntick timer code X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org nearest_delta_us is calculated but not used. Drop it. Signed-off-by: Jan Kiszka --- vl.c | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/vl.c b/vl.c index a7de9fa..a1eadf5 100644 --- a/vl.c +++ b/vl.c @@ -1167,7 +1167,7 @@ static int64_t qemu_next_deadline(void) return delta; } -#if defined(__linux__) || defined(_WIN32) +#if defined(__linux__) static uint64_t qemu_next_deadline_dyntick(void) { int64_t delta; @@ -1475,15 +1475,11 @@ static void win32_stop_timer(struct qemu_alarm_timer *t) static void win32_rearm_timer(struct qemu_alarm_timer *t) { struct qemu_alarm_win32 *data = t->priv; - uint64_t nearest_delta_us; if (!active_timers[QEMU_CLOCK_REALTIME] && !active_timers[QEMU_CLOCK_VIRTUAL]) return; - nearest_delta_us = qemu_next_deadline_dyntick(); - nearest_delta_us /= 1000; - timeKillEvent(data->timerId); data->timerId = timeSetEvent(1,