Patchwork [v2,2/4] win32: Drop dead dyntick timer code

login
register
mail settings
Submitter Jan Kiszka
Date Sept. 11, 2009, 12:01 p.m.
Message ID <20090911120131.25269.28803.stgit@mchn012c.ww002.siemens.net>
Download mbox | patch
Permalink /patch/33453/
State Superseded
Headers show

Comments

Jan Kiszka - Sept. 11, 2009, 12:01 p.m.
nearest_delta_us is calculated but not used. Drop it.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---

 vl.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

Patch

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,