Re: [PATCH] Re: time() glitch on 2.4.18: solved

From: Jim Paris (jim@jtan.com)
Date: Tue Nov 05 2002 - 13:50:29 EST


> could that be the reason a few people have experienced occasionnal jumps
> backwards in gettimeofday() a few months ago, which many others could never
> reproduce ? Just because of buggy hardware ?

An unpaired read on port 0x40 is almost certainly the cause of e.g.

    http://www.uwsg.iu.edu/hypermail/linux/kernel/0206.0/1505.html

and we would expect to see the problem with count==LATCH about 1/11932
of the time, about 0.008% -- almost exactly the value reported in:

    http://www.uwsg.iu.edu/hypermail/linux/kernel/0206.3/0043.html

I believe that by adding both the (count > LATCH) check and a second
(count == LATCH) check, we can fix both of these.

-jim
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Nov 07 2002 - 22:00:39 EST