WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] fix pit hz

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] fix pit hz
From: "Dan Magenheimer" <dan.magenheimer@xxxxxxxxxx>
Date: Sat, 19 Jul 2008 06:47:45 -0600
Cc: "dan@xxxxxxxxxxxxxxx" <dan@xxxxxxxxxxxxxxx>
Delivery-date: Sat, 19 Jul 2008 05:55:04 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Oracle Corporation
Reply-to: "dan.magenheimer@xxxxxxxxxx" <dan.magenheimer@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcjpnaJZpBpMw5eqRU+oQB5enuRtpA==
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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] fix pit hz, Dan Magenheimer <=