]> git.ipfire.org Git - thirdparty/chrony.git/commit
refclock: add local option
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 22 Feb 2022 10:24:00 +0000 (11:24 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 23 Feb 2022 13:43:39 +0000 (14:43 +0100)
commit62757cda4920097e6f82a18579f3a9ee65409884
tree33105a13c715d64b22da540189042eb5f92cee0f
parentaf6ae9186b8d2aad14c7d4bd974ee1676b9af422
refclock: add local option

Add "local" option to specify that the reference clock is an
unsynchronized clock which is more stable than the system clock (e.g.
TCXO, OCXO, or atomic clock) and it should be used as a local standard
to stabilize the system clock.

Handle the local refclock as a PPS refclock locked to itself which gives
the unsynchronized status to be ignored in the source selection. Wait
for the refclock to get at least minsamples samples and adjust the clock
directly to follow changes in the refclock's sourcestats frequency and
offset.

There should be at most one refclock specified with this option.
conf.c
doc/chrony.conf.adoc
refclock.c
refclock.h
test/simulation/106-refclock