]> git.baikalelectronics.ru Git - kernel.git/commit
ptp: add gettimex64() to virtual clocks.
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 2 Feb 2022 09:33:57 +0000 (10:33 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Feb 2022 14:00:57 +0000 (14:00 +0000)
commitf7cc6c84140c8d7a97a70b45e2450a4e5c0214a7
treef0799cbe78bea40ff23ac55c10e8172652a1a642
parente55aa9c267cd799d32d9320e072fd87fa22ca5dd
ptp: add gettimex64() to virtual clocks.

If the physical clock has the gettimex64() function, provide a
gettimex64() wrapper in the virtual clock to enable more accurate
and stable synchronization.

This adds support for the PTP_SYS_OFFSET_EXTENDED ioctl.

Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Cc: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_vclock.c