lkml.org 
[lkml]   [1998]   [Apr]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From(H. Peter Anvin)
SubjectRe: do_fast_gettimeoffset on x86
Date4 Apr 1998 02:48:15 GMT
Followup to:  <199804040237.TAA23211@nyx10.nyx.net>
By author: Colin Plumb <colin@nyx.net>
In newsgroup: linux.dev.kernel
>
> I was looking at the code, and it seems wrong. It implicitly assumes
> that the processor time stamp counter and the jiffies counter start
> at the same time. Even assuming a hard reset, the processor could
> have spent a very long time booting (or even hours in some other operating
> system before running loadlin) before jiffies got started.
>
> (It divides the rdtsc value by jiffies and uses that with the
> difference between the rdtsc value now and the value recorded by
> the last timer interrupt to compute the fraction of a jiffy
> we're currently at.)
>
> I have some ideas about fixing it, but is there anybody who "owns"
> that code and I should talk to before I start playing with it?
> (I also want to make it work with APM as much as possible.)
> --
> -Colin
>

I think Ulrich Windl is the current Linux time czar.

Ulrich: do you think this could account for some of the mysterious
time-skipping events we used to see?

-hpa
--
PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD 1E DF FE 69 EE 35 BD 74
See http://www.zytor.com/~hpa/ for web page and full PGP public key
I am Bahá'í -- ask me about it or see http://www.bahai.org/
"To love another person is to see the face of God." -- Les Misérables

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:42    [from the cache]
©2003-2010