Commit 55712b6
committed
Use fixed timeout during fake timer phase
The previous event-driven timer implementation caused hrtimer warnings
and boot delays on macOS CI because it calculated wait times based on
emulator's fake incremental timer but used host OS real-time timers.
Root cause:
- During boot, semu_timer_get() returns fake ticks (slow linear growth)
- calc_ns_until_next_interrupt() converted these to nanoseconds
- kqueue/timerfd waited using wall clock time
Fix:
Use conservative 1ms fixed timeout during boot phase. After boot
completes and timer switches to real-time, use dynamic calculation for
optimal CPU efficiency.1 parent 75b6554 commit 55712b6
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
986 | 987 | | |
987 | 988 | | |
988 | 989 | | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
989 | 993 | | |
990 | 994 | | |
991 | 995 | | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
992 | 1004 | | |
993 | 1005 | | |
994 | 1006 | | |
| |||
0 commit comments