Re: [PATCH 18/24] timekeeping: Prepare for cross timestamps on arbitrary clock IDs

From
David Woodhouse <dwmw2@infradead.org>
Date
2026-05-26 23:54:32
Also in
kvmarm, linux-sound, linux-wireless, lkml, netdev
Reply to
Thomas Gleixner, 2026-05-26
On Tue, 26 May 2026 19:14:57 +0200, Thomas Gleixner wrote:
PTP device system crosstime stamps support only CLOCK_REALTIME, which is
meaningless for AUX clocks. The PTP core hands in the clock ID already, so
prepare the core code to honor it.

 - Add a new sys_systime field to struct system_device_crosststamp which
   aliases the sys_realtime field. Once all users are converted
   sys_realtime can be removed.

 - Prepare get_device_system_crosststamp() and the related code for it by
   switching to sys_systime and providing the initial changes to utilize
   different time keepers.

No functional change intended.

Signed-off-by: Thomas Gleixner <tglx@kernel.org>
I suspect I'll be back to frown at adjust_historical_crosststamp() at
some point, but that's a separate issue. For this change:

Reviewed-by: David Woodhouse <redacted>
Tested-by: David Woodhouse <redacted>

Attachments

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