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

From
Thomas Gleixner <tglx@kernel.org>
Date
2026-05-28 13:55:18
Also in
kvmarm, linux-sound, linux-wireless, lkml, virtualization
Reply to
Jakub Kicinski, 2026-05-27
On Wed, May 27 2026 at 16:56, Jakub Kicinski wrote:
On Tue, 26 May 2026 19:15:27 +0200 Thomas Gleixner wrote:
quoted
-	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;
      |                 ~~~  ^
Noticed too and fixed locally already.
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