linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* System clock frequency offset changes drastically across reboots
@ 2007-09-03 10:21 John Sigler
  0 siblings, 0 replies; 4+ messages in thread
From: John Sigler @ 2007-09-03 10:21 UTC (permalink / raw)
  To: linux-kernel, linux-rt-users; +Cc: johnstul, tglx

[ Re-sending... Please feel free to comment, even if you don't have
"The Solution". I'd just like to get some feedback. ]

Hello everyone,

I'm using 2.6.20.7-rt8 on a P3.

I've noticed that the frequency offset of my system clock (computed
either by ntpd, or by hand) changes drastically across reboots.

By drastically, I mean +/- 60 ppm every time I reboot.

Apparently this is caused by some imprecision in the frequency
estimation done in calculate_cpu_khz() (arch/i386/kernel/tsc.c)

My brutally crude work-around was to skip the computation altogether and
hard-code the "correct" value for cpu_khz.

http://linux.kernel.free.fr/cpu_khz.adlink

Has this issue been investigated more thoroughly by other users?

Regards.

^ permalink raw reply	[flat|nested] 4+ messages in thread
* System clock frequency offset changes drastically across reboots
@ 2007-07-27 11:56 John Sigler
  2007-07-30  7:59 ` John Sigler
  0 siblings, 1 reply; 4+ messages in thread
From: John Sigler @ 2007-07-27 11:56 UTC (permalink / raw)
  To: linux-kernel, linux-rt-users

Hello everyone,

I'm using 2.6.20.7-rt8 on a P3.

I've noticed that the frequency offset of my system clock (computed 
either by ntpd, or by hand) changes drastically across reboots.

By drastically, I mean +/- 60 ppm every time I reboot.

Apparently this is caused by some imprecision in the frequency 
estimation done in calculate_cpu_khz() (arch/i386/kernel/tsc.c)

My brutally crude work-around was to skip the computation altogether and 
hard-code the "correct" value for cpu_khz.

http://linux.kernel.free.fr/cpu_khz.adlink

Has this issue been investigated more thoroughly by other users?

Regards.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-09-03 10:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-03 10:21 System clock frequency offset changes drastically across reboots John Sigler
  -- strict thread matches above, loose matches on Subject: below --
2007-07-27 11:56 John Sigler
2007-07-30  7:59 ` John Sigler
2007-08-03  7:47   ` John Sigler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).