Skip to content
Browse files

HVM-686 don't break things for Linux, use CLOCK_HIGHRES on SmartOS an…

…d CLOCK_REALTIME on Linux.
  • Loading branch information...
1 parent c659a1a commit 2eda6ac426328a10c4c76ee386951b2976e11328 @joshwilsdon joshwilsdon committed Nov 28, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 qemu-timer.c
View
4 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 */

0 comments on commit 2eda6ac

Please sign in to comment.
Something went wrong with that request. Please try again.