static int unix_start_timer(struct qemu_alarm_timer *t);
static void unix_stop_timer(struct qemu_alarm_timer *t);
-#if defined(__linux__) && !defined(CONFIG_DM)
+#if defined(__linux__)
static int dynticks_start_timer(struct qemu_alarm_timer *t);
static void dynticks_stop_timer(struct qemu_alarm_timer *t);
static struct qemu_alarm_timer alarm_timers[] = {
#ifndef _WIN32
-#if defined(__linux__) && !defined(CONFIG_DM)
+#if defined(__linux__)
{"dynticks", ALARM_FLAG_DYNTICKS, dynticks_start_timer,
dynticks_stop_timer, dynticks_rearm_timer, NULL},
/* HPET - if available - is preferred */
return 0;
}
-#ifndef CONFIG_DM /* ends just before fcntl_setfl */
#ifdef _WIN32
void CALLBACK host_alarm_handler(UINT uTimerID, UINT uMsg,
DWORD_PTR dwUser, DWORD_PTR dw1, DWORD_PTR dw2)
return delta;
}
#endif
-#endif
#ifndef _WIN32
return 0;
}
-#ifndef CONFIG_DM /* ends after end of win32_rearm_timer */
#if defined(__linux__)
#define RTC_FREQ 1024
#endif /* defined(__linux__) */
+#ifndef CONFIG_STUBDOM
static int unix_start_timer(struct qemu_alarm_timer *t)
{
struct sigaction act;
memset(&itv, 0, sizeof(itv));
setitimer(ITIMER_REAL, &itv, NULL);
}
+#else
+static int unix_start_timer(struct qemu_alarm_timer *t) { return 0; }
+static void unix_stop_timer(struct qemu_alarm_timer *t) { }
+#endif
-#endif /* !defined(_WIN32) */
static void try_to_rearm_timer(void *opaque)
{
dcl = dcl->next;
}
+#ifndef CONFIG_DM
if (nographic || (vnc_display && !sdl)) {
nographic_timer = qemu_new_timer(rt_clock, nographic_update, NULL);
qemu_mod_timer(nographic_timer, qemu_get_clock(rt_clock));
}
+#endif
text_consoles_set_display(display_state);
qemu_chr_initial_reset();
return 0;
}
-
-static int unix_start_timer(struct qemu_alarm_timer *t) { return 0; }
-static void unix_stop_timer(struct qemu_alarm_timer *t) { }