[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] fix pit hz



I was wondering why dom0's dmesg reports slightly different
Hz rates for Linux vs Xen.

Several years ago, Linux changed various PIT rate constants
from 11931780 to 11931782.  (The precise value should be
11931781.8181...)  Xen apparently never caught up.  (But
interestingly many non-x86 arch's in Linux never did
either!)

This briefly explains the difference and history.
http://groups.google.com/group/openwatcom.users.c_cpp/msg/db10671e6f8e711f
Since this constant is usually used in mul/div calculations,
it may be possible to get even more precise: 105000000/88

Constant replacement patch attached.  I may try to use
the more precise calculation later as the exact value
becomes more important for clocksource=tsc.

Dan

===================================
Thanks... for the memory
I really could use more / My throughput's on the floor
The balloon is flat / My swap disk's fat / I've OOM's in store
Overcommitted so much
(with apologies to the late great Bob Hope)

Attachment: pitfreq.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.