Hi,

the following is stuff from qemu-xp and cannot directly be applied to the
qemu sources. Anyhow: you can see what I have done. As a result windows
displays the correct time. Also the poll() was a bit optimised. The timer
stuff was changed to get some cpu cycles back. On a system with low CPU
load the timer might consume 0.5% of the time, but under heavy CPU load
you might see 5% time spent by the timer (actually I plan to dynamically
reduce the alarm timer frequency in future versions). Other clean-ups are
(and will be) related to memory-locality of frequently used data.

I have not seen any negative side effects of my code. TCP/IP still works
(they use the cpu-clock-counter?). The code was not written for gamers...
fast animations will not run precise. The deal is: don't waste cpu cycles
but make the windows clock go right (even with speed-step).

Yours Juergen


Attachment: timer.patch.gz
Description: GNU Zip compressed data

_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Reply via email to