Re: [patch 24/24] ptp: Switch to ktime_get_snapshot_id() for pre/post timestamps

From
Jakub Kicinski <kuba@kernel.org>
Date
2026-05-27 23:56:23
Also in
kvmarm, linux-sound, linux-wireless, lkml, virtualization
Reply to
Thomas Gleixner, 2026-05-26
On Tue, 26 May 2026 19:15:27 +0200 Thomas Gleixner wrote:
quoted hunk ↗ jump to hunk
-	if (sts && bp->ts_window_adjust) {
-		s64 ns = timespec64_to_ns(&sts->post_ts);
-
-		sts->post_ts = ns_to_timespec64(ns - bp->ts_window_adjust);
-	}
+	if (sts && bp->ts_window_adjust)
+		sts->post_ts.sys -= bp->ts_window_adjust;
FWIW build says:

drivers/ptp/ptp_ocp.c:1495:8: error: no member named 'post_ts' in 'struct ptp_system_timestamp'
 1495 |                 sts->post_ts.sys -= bp->ts_window_adjust;
      |                 ~~~  ^
Thread (86 messages) 86 messages, 9 authors, last reply 2026-07-06
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help