From d5300559170c15647f49f36d826dfc051b7ca074 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 2 Jun 2022 16:06:04 +0200 Subject: [PATCH] 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. --- sys_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys_linux.c b/sys_linux.c index 762bf0a..fd818e3 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,