mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 16:55:07 -05:00
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.
This commit is contained in:
@@ -44,8 +44,8 @@ OBJS = util.o sched.o regress.o local.o \
|
||||
logging.o conf.o cmdmon.o keys.o \
|
||||
nameserv.o acquire.o manual.o addrfilt.o \
|
||||
cmdparse.o mkdirpp.o rtc.o pktlength.o clientlog.o \
|
||||
broadcast.o refclock.o refclock_shm.o refclock_sock.o \
|
||||
refclock_pps.o tempcomp.o $(HASH_OBJ)
|
||||
broadcast.o refclock.o refclock_phc.o refclock_pps.o \
|
||||
refclock_shm.o refclock_sock.o tempcomp.o $(HASH_OBJ)
|
||||
|
||||
EXTRA_OBJS=@EXTRA_OBJECTS@
|
||||
|
||||
|
||||
Reference in New Issue
Block a user