[PATCH] adjust clock for lost ticks
commite154ff3d2c5ad313ef0c66e6217502361cad2799
authorRoman Zippel <zippel@linux-m68k.org>
Mon, 10 Jul 2006 11:44:32 +0000 (10 04:44 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 10 Jul 2006 20:24:18 +0000 (10 13:24 -0700)
tree699be5e589775061d4279a7439ba5b2dc517078b
parent32dd66fce3b0ad5857433433b795844cb397608e
[PATCH] adjust clock for lost ticks

A large number of lost ticks can cause an overadjustment of the clock.  To
compensate for this we look at the current error and the larger the error
already is the more careful we are at adjusting the error.  As small extra
fix reset the error when the clock is set.

Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
Acked-by: john stultz <johnstul@us.ibm.com>
Cc: Uwe Bugla <uwe.bugla@gmx.de>
Cc: James Bottomley <James.Bottomley@SteelEye.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/timer.c