[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/5] win32: Drop dead dyntick timer code
From: |
Jan Kiszka |
Subject: |
[Qemu-devel] [PATCH 2/5] win32: Drop dead dyntick timer code |
Date: |
Wed, 09 Sep 2009 17:11:12 +0200 |
User-agent: |
StGIT/0.14.3 |
nearest_delta_us is calculated but not used. Drop it.
Signed-off-by: Jan Kiszka <address@hidden>
---
vl.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/vl.c b/vl.c
index 872083d..e56207c 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,
- [Qemu-devel] [PATCH 0/5] Refactor and enhance RTC configuration, Jan Kiszka, 2009/09/09
- [Qemu-devel] [PATCH 3/5] Introduce QEMU_CLOCK_HOST, Jan Kiszka, 2009/09/09
- [Qemu-devel] [PATCH 1/5] Rename QEMU_TIMER_* to QEMU_CLOCK_*, Jan Kiszka, 2009/09/09
- [Qemu-devel] [PATCH 4/5] Refactor RTC command line switches, Jan Kiszka, 2009/09/09
- [Qemu-devel] [PATCH 5/5] Enable host-clock-based RTC, Jan Kiszka, 2009/09/09
- [Qemu-devel] [PATCH 2/5] win32: Drop dead dyntick timer code,
Jan Kiszka <=
- [Qemu-devel] Re: [PATCH 0/5] Refactor and enhance RTC configuration, Anthony Liguori, 2009/09/09
- Re: [Qemu-devel] Re: [PATCH 0/5] Refactor and enhance RTC configuration, Jamie Lokier, 2009/09/09
- Re: [Qemu-devel] Re: [PATCH 0/5] Refactor and enhance RTC configuration, Jan Kiszka, 2009/09/11
- Re: [Qemu-devel] Re: [PATCH 0/5] Refactor and enhance RTC configuration, Dor Laor, 2009/09/13