]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ptp: Use system_device_crosststamp::sys_systime
authorThomas Gleixner <tglx@kernel.org>
Fri, 29 May 2026 20:01:05 +0000 (22:01 +0200)
committerThomas Gleixner <tglx@kernel.org>
Thu, 4 Jun 2026 09:04:17 +0000 (11:04 +0200)
.. to prepare for cross timestamps with variable clock IDs.

No functional change.

Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Tested-by: David Woodhouse <dwmw@amazon.co.uk>
Tested-by: Arthur Kiyanovski <akiyano@amazon.com>
Reviewed-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20260529195557.897808371@kernel.org
drivers/ptp/ptp_chardev.c

index da964c3778fbf2df220df3c962c52afbb08b6799..f52bbb39cd8bacea53af3347d8a91498faf54a7a 100644 (file)
@@ -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);