提交 d79284e0 编写于 作者: B bellard

i386 linux 2.6 timer fix


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1243 c046a42c-6fe2-441c-8c8c-71466251a162
上级 9191d4d1
......@@ -922,7 +922,7 @@ static void init_timers(void)
sigaction(SIGALRM, &act, NULL);
itv.it_interval.tv_sec = 0;
itv.it_interval.tv_usec = 1000;
itv.it_interval.tv_usec = 999; /* for i386 kernel 2.6 to get 1 ms */
itv.it_value.tv_sec = 0;
itv.it_value.tv_usec = 10 * 1000;
setitimer(ITIMER_REAL, &itv, NULL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册