]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
sys_linux: increase number of PHC readings
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 2 Jun 2022 14:06:04 +0000 (16:06 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 8 Jun 2022 12:29:35 +0000 (14:29 +0200)
Increase the number of requested readings from 10 to 25 - the maximum
accepted by the PTP_SYS_OFFSET* ioctls. This should improve stability of
HW clock tracking and PHC refclock.

sys_linux.c

index 762bf0a41864abc9c277b3992b1a8569d42ac848..fd818e3eedb382c8cd75f72ac10bfd69ad38d0bf 100644 (file)
@@ -794,7 +794,7 @@ SYS_Linux_CheckKernelVersion(int req_major, int req_minor)
 
 #if defined(FEAT_PHC) || defined(HAVE_LINUX_TIMESTAMPING)
 
-#define PHC_READINGS 10
+#define PHC_READINGS 25
 
 static int
 process_phc_readings(struct timespec ts[][3], int n, double precision,