]> err.no Git - linux-2.6/commit
[PATCH] Time: Use clocksource abstraction for NTP adjustments
authorjohn stultz <johnstul@us.ibm.com>
Mon, 26 Jun 2006 07:25:07 +0000 (00:25 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 26 Jun 2006 16:58:20 +0000 (09:58 -0700)
commit5eb6d20533d14a432df714520939a6181e28f099
treeb032147620a8e213356658783f8037d2f5623b57
parent260a42309b31cbc54eb4b6b85649e412bcad053f
[PATCH] Time: Use clocksource abstraction for NTP adjustments

Instead of incrementing xtime by tick_nsec + ntp adjustments, use the
clocksource abstraction to increment and scale time.  Using the clocksource
abstraction allows other clocksources to be used consistently in the face of
late or lost ticks, while preserving the existing behavior via the jiffies
clocksource.

This removes the need to keep time_phase adjustments as we just use the
current_tick_length() function as the NTP interface and accumulate time using
shifted nanoseconds.

The basics of this design was by Roman Zippel, however it is my own
interpretation and implementation, so the credit should go to him and the
blame to me.

Signed-off-by: John Stultz <johnstul@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/clocksource.h
kernel/timer.c