From: Thomas Gleixner Date: Fri, 29 May 2026 20:01:05 +0000 (+0200) Subject: ptp: Use system_device_crosststamp::sys_systime X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=12b497db7cbd2f07b7f182452bce6bb0e48e71dc;p=thirdparty%2Flinux.git ptp: Use system_device_crosststamp::sys_systime .. to prepare for cross timestamps with variable clock IDs. No functional change. Signed-off-by: Thomas Gleixner Tested-by: David Woodhouse Tested-by: Arthur Kiyanovski Reviewed-by: David Woodhouse Reviewed-by: Jacob Keller Link: https://patch.msgid.link/20260529195557.897808371@kernel.org --- diff --git a/drivers/ptp/ptp_chardev.c b/drivers/ptp/ptp_chardev.c index da964c3778fbf..f52bbb39cd8ba 100644 --- a/drivers/ptp/ptp_chardev.c +++ b/drivers/ptp/ptp_chardev.c @@ -333,7 +333,7 @@ static long ptp_sys_offset_precise(struct ptp_clock *ptp, void __user *arg, ts = ktime_to_timespec64(xtstamp.device); precise_offset.device.sec = ts.tv_sec; precise_offset.device.nsec = ts.tv_nsec; - ts = ktime_to_timespec64(xtstamp.sys_realtime); + ts = ktime_to_timespec64(xtstamp.sys_systime); precise_offset.sys_realtime.sec = ts.tv_sec; precise_offset.sys_realtime.nsec = ts.tv_nsec; ts = ktime_to_timespec64(xtstamp.sys_monoraw);