OSDN Git Service

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)
commit895487a3a10fb3a177e20dcde875515d46ccd4df
tree469a438e482937c6b59f1f9e74c4eda96aa84bbc
parentc156174a67070042d51d2c866146d3c934d5468c
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