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.
This commit is contained in:
Miroslav Lichvar 2022-06-02 16:06:04 +02:00
parent f41d09e19f
commit d530055917

View file

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