]> git.ipfire.org Git - thirdparty/chrony.git/commit
Add PHC refclock driver
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 14 Aug 2013 16:13:39 +0000 (18:13 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 14 Aug 2013 16:52:23 +0000 (18:52 +0200)
commit1d289787b64c41e189b92776e3b09506cc4cb406
treeef458764852bbc36560f324d29efc97e7a59d297
parentb5658f4d9c3d024fd93644f58fb0b47c7e0fa78e
Add PHC refclock driver

Implement a driver which allows using PTP hardware clock (PHC) as a
reference clock. It uses the PTP_SYS_OFFSET ioctl or clock_gettime()
to measure the offset between the PTP clock and the system clock. Ten
readings are made for every driver poll and the fastest one is returned.

As PHCs are typically kept in TAI instead of UTC, it's necessary to set
the TAI/UTC offset manually by the offset option. This could be improved
by obtaining the offset automatically from the right/UTC timezone.
Makefile.in
chrony.texi.in
configure
refclock.c
refclock_phc.c [new file with mode: 0644]