sys_linux: add support for PTP_SYS_OFFSET_PRECISE

This is for hardware that can precisely cross timestamp the PHC with the
system clock.
This commit is contained in:
Miroslav Lichvar
2017-01-19 16:05:49 +01:00
parent 9df4d36157
commit 31b6a14444
4 changed files with 41 additions and 5 deletions

View File

@@ -368,7 +368,7 @@ process_hw_timestamp(struct Interface *iface, struct timespec *hw_ts,
int l2_length;
if (HCL_NeedsNewSample(iface->clock, &local_ts->ts)) {
if (!SYS_Linux_GetPHCSample(iface->phc_fd, iface->precision, &iface->phc_mode,
if (!SYS_Linux_GetPHCSample(iface->phc_fd, 0, iface->precision, &iface->phc_mode,
&sample_phc_ts, &sample_sys_ts, &err))
return;