[parisc-linux] [PATCH] timer_interrupt and gettimeoffset.
James Bottomley
James.Bottomley at SteelEye.com
Sun Sep 3 10:14:53 MDT 2006
On Sun, 2006-09-03 at 11:00 -0400, Carlos O'Donell wrote:
> Your guess that this is the solution to problem 2) is not quite right.
> I will argue that the "halftick" counting is at fault here. When a
> "halftick" is counted as a full tick the system time moves into the
> future. All calls to gettimeoffset must therefore return negative
> adjustments. I think removing the erroneous halftick counting is the
> solution to issue 2.
Actually, I think we just accept it as a feature rather than a bug.
Since the timer interrupts miss so many ticks, halftick processing looks
like a good idea to me. Thus, we have to assume gettimeoffset() can be
negative by up to half a tick. The current processing in
do_gettimeofday() already copes nicely with this.
James
More information about the parisc-linux
mailing list