On Fri, Oct 22, 2021 at 03:03:57PM -0700, Jacob Keller wrote: > The current implementation of test_phc cmp has a fallback flow for comparing > the PHC clock to the CLOCK_REAMTIME. This fallback flow calculates the > inverse offset compared to the offsets calculated by the PTP_SYS_OFFSET > ioctls. > > Fix this by replacing its implementation with the one from phc2sys. Move > read_phc function into clockadj.c to re-use it.
Looks good to me. I'd just expect a comment about the order of declarations in clockadj_compare() that could be fixed as the code is being moved. -- Miroslav Lichvar _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel