From 2eda6ac426328a10c4c76ee386951b2976e11328 Mon Sep 17 00:00:00 2001 From: Josh Wilsdon Date: Mon, 28 Nov 2011 19:30:18 +0000 Subject: HVM-686 don't break things for Linux, use CLOCK_HIGHRES on SmartOS and CLOCK_REALTIME on Linux. --- qemu-timer.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qemu-timer.c b/qemu-timer.c index dd0f330..0230274 100644 --- a/qemu-timer.c +++ b/qemu-timer.c @@ -870,7 +870,11 @@ static int dynticks_start_timer(struct qemu_alarm_timer *t) ev.sigev_notify = SIGEV_SIGNAL; ev.sigev_signo = SIGALRM; +#if defined(__sun__) if (timer_create(CLOCK_HIGHRES, &ev, &host_timer)) { +#else + if (timer_create(CLOCK_REALTIME, &ev, &host_timer)) { +#endif perror("timer_create"); /* disable dynticks */ -- cgit v1.2.3