refclock_phc: use sys_linux code for reading PHC

This drops support for non-ioctl reading of PHC.
This commit is contained in:
Miroslav Lichvar
2017-01-19 15:54:01 +01:00
parent b70f0b674f
commit 9df4d36157
4 changed files with 35 additions and 107 deletions

View File

@@ -505,6 +505,12 @@ RCL_AddPulse(RCL_Instance instance, struct timespec *pulse_time, double second)
return 1;
}
double
RCL_GetPrecision(RCL_Instance instance)
{
return instance->precision;
}
static int
valid_sample_time(RCL_Instance instance, struct timespec *raw, struct timespec *cooked)
{