From: Miroslav Lichvar Date: Thu, 2 Jun 2022 14:06:04 +0000 (+0200) Subject: sys_linux: increase number of PHC readings X-Git-Tag: 4.3-pre1~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5300559170c15647f49f36d826dfc051b7ca074;p=thirdparty%2Fchrony.git sys_linux: increase number of PHC readings 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. --- diff --git a/sys_linux.c b/sys_linux.c index 762bf0a4..fd818e3e 100644 --- a/sys_linux.c +++ b/sys_linux.c @@ -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,