]> git.neil.brown.name Git - history.git/commit
[PATCH] fix lost-tick compensation corner-case
authorAndrew Morton <akpm@osdl.org>
Wed, 2 Jul 2003 15:49:14 +0000 (08:49 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 2 Jul 2003 15:49:14 +0000 (08:49 -0700)
commit3271736784253fe68ccb46ec2320066f70ceecb6
treea37e9221538107d7365cfdaefcf9575574522bab
parent48ecce4b8ed5888dc791d003961291340a467175
[PATCH] fix lost-tick compensation corner-case

From: john stultz <johnstul@us.ibm.com>

This patch catches a corner case in the lost-tick compensation code.

There is a check to see if we overflowed between reads of the two time
sources, however should the high res time source be slightly slower then
what we calibrated, its possible to trigger this code when no ticks have
been lost.

This patch adds an extra check to insure we have seen more then one tick
before we check for this overflow.  This seems to resolve the remaining
"time doubling" issues that I've seen reported.
arch/i386/kernel/timers/timer_cyclone.c
arch/i386/kernel/timers/timer_tsc.c