]> git.baikalelectronics.ru Git - kernel.git/commit
ptp: add kernel API ptp_convert_timestamp()
authorYangbo Lu <yangbo.lu@nxp.com>
Wed, 30 Jun 2021 08:11:57 +0000 (16:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Jul 2021 20:08:18 +0000 (13:08 -0700)
commit1f4f35d2c50711587bd1893180fcc6c7604d7f74
tree469a438e482937c6b59f1f9e74c4eda96aa84bbc
parentb74c75aaee026cd68aeee5672070a61a9fa4bee6
ptp: add kernel API ptp_convert_timestamp()

Add kernel API ptp_convert_timestamp() to convert raw hardware timestamp
to a specified ptp vclock time.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_vclock.c
include/linux/ptp_clock_kernel.h