]> git.ipfire.org Git - thirdparty/chrony.git/commit
refclock: add new refclock for RTCs
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 30 Jun 2021 14:47:21 +0000 (16:47 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 4 Dec 2024 14:58:10 +0000 (15:58 +0100)
commit4f22883f4e71c7e5fd71e27831f6f0fbef21d0bb
tree7fd9308b67e8f07fad7dad717e41be545b27ee14
parent65be9d9a022221d6fb165f425e72cd2f9b99ca50
refclock: add new refclock for RTCs

This refclock uses an RTC as reference source. If the RTC doesn't
support reporting an update event this source is quite coarse as it
usually needs a slow bus access to be read and has a precision of only
one second. If reporting an update event is available, the time is read
just after such an event which improves precision.

Depending on hardware capabilities you might want to combine it with a
PPS reference clock sourced from the same chip.

Note that you can enable UIE emulation in the Linux kernel to make a RTC
without interrupt support look like one with irqs in return for some
system and bus overhead.

Co-authored-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
configure
doc/chrony.conf.adoc
refclock.c
refclock_rtc.c [new file with mode: 0644]