do_fast_gettimeoffset on x86

Colin Plumb (colin@nyx.net)
Fri, 3 Apr 1998 19:37:04 -0700 (MST)


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