]> git.baikalelectronics.ru Git - kernel.git/commit
ptp: Pass hwtstamp to ptp_convert_timestamp()
authorGerhard Engleder <gerhard@engleder-embedded.com>
Fri, 6 May 2022 20:01:39 +0000 (22:01 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 10 May 2022 07:48:08 +0000 (09:48 +0200)
commit0e77fd56510a20dd4a276188366634dd01965130
treef86bb3e845ae311198669bfc90f2f0d4b1a4f3d7
parent8a8a28fb814adc53d63b7beabef8e34f0a9e0b19
ptp: Pass hwtstamp to ptp_convert_timestamp()

ptp_convert_timestamp() converts only the timestamp hwtstamp, which is
a field of the argument with the type struct skb_shared_hwtstamps *. So
a pointer to the hwtstamp field of this structure is sufficient.

Rework ptp_convert_timestamp() to use an argument of type ktime_t *.
This allows to add additional timestamp manipulation stages before the
call of ptp_convert_timestamp().

Signed-off-by: Gerhard Engleder <gerhard@engleder-embedded.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/ptp/ptp_vclock.c
include/linux/ptp_clock_kernel.h
net/socket.c