lkml.org 
[lkml]   [1998]   [Apr]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectdo_fast_gettimeoffset on x86
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

-
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    [W:2.436 / U:1.464 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site