]> git.baikalelectronics.ru Git - kernel.git/commit
ntp: Clamp PLL update interval
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 7 Sep 2010 14:43:46 +0000 (16:43 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 9 Sep 2010 18:48:37 +0000 (20:48 +0200)
commit4100e24167fda14d45d360d0e0c6acfec7a9cdec
treedb80f770b668f7067c3e95af92cc92933edce4e0
parent05ca25b816babd654dda36d3bb5171f66ea5e3fc
ntp: Clamp PLL update interval

Clamp update interval to reduce PLL gain with low sampling rate (e.g.
intermittent network connection) to avoid instability.

The clamp roughly corresponds to the loop time constant, it's 8 * poll
interval for SHIFT_PLL 2 and 32 * poll interval for SHIFT_PLL 4. This
gives good results without affecting the gain in normal conditions where
ntpd skips only up to seven consecutive samples.

Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
Acked-by: john stultz <johnstul@us.ibm.com>
LKML-Reference: <1283870626-9472-1-git-send-email-mlichvar@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/time/ntp.c