]> git.ipfire.org Git - thirdparty/chrony.git/commit
ntp: add maximum PHC poll interval
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 14 Mar 2023 11:23:21 +0000 (12:23 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 22 Mar 2023 08:13:53 +0000 (09:13 +0100)
commit5160f14fdcbf7335120dc10b09f95d7a881029bf
treedfcd30710381ab996fb43ea89e858d1a7fecd87f
parentb0a2ad2535145ed3d79b39cf0ab4d8ca4eca4fbc
ntp: add maximum PHC poll interval

Specify maxpoll for HW timestamping (default minpoll + 1) to track the
PHC well even when there is little NTP traffic on the interface. After
each PHC reading schedule a timeout according to the maxpoll. Polling
between minpoll and maxpoll is still triggered by HW timestamps.

Wait for the first HW timestamp before adding the timeout to avoid
polling PHCs on interfaces that are enabled in the configuration but
not used for NTP. Add a new scheduling class to separate polling of
different PHCs to avoid too long intervals between processing I/O
events.
conf.c
conf.h
doc/chrony.conf.adoc
ntp_io_linux.c
sched.h
test/simulation/133-hwtimestamp