[PATCH] ntp: add ntp_update_frequency
authorRoman Zippel <zippel@linux-m68k.org>
Sun, 1 Oct 2006 06:28:22 +0000 (23:28 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 1 Oct 2006 07:39:26 +0000 (00:39 -0700)
commitb0ee75561beadc4db4d9a899c8ef4a7db50aa0ab
treee50354c74ce17f6ea78dc1d7fac608788de517f3
parent4c7ee8de956fc250fe31e2fa91f6da980fabe317
[PATCH] ntp: add ntp_update_frequency

This introduces ntp_update_frequency() and deinlines ntp_clear() (as it's not
performance critical).  ntp_update_frequency() calculates the base tick length
using tick_usec and adds a base adjustment, in case the frequency doesn't
divide evenly by HZ.

Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
Cc: john stultz <johnstul@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/timex.h
kernel/time/ntp.c
kernel/timer.c