]> git.ipfire.org Git - thirdparty/linux.git/commit
timekeeping: Add CLOCK ID to system_device_crosststamp
authorThomas Gleixner <tglx@kernel.org>
Fri, 29 May 2026 20:00:32 +0000 (22:00 +0200)
committerThomas Gleixner <tglx@kernel.org>
Thu, 4 Jun 2026 09:04:16 +0000 (11:04 +0200)
commite3b8d03faa4d266d19ff7a7534e7bf810ff681cf
tree32c9224528512c82a64d052149eda73902a2982e
parent6c14771816435a7ecf52d981a341e2de21463268
timekeeping: Add CLOCK ID to system_device_crosststamp

The normal capture for system/device cross timestamps is CLOCK_REALTIME,
but that's meaningless for AUX clocks.

Add a clock_id field to struct system_device_crosststamp and initialize it
with CLOCK_REALTIME at the two places which prepare for cross
timestamps.

After the related code has been cleaned up, the core code will honor the
clock_id field when calculating the system time from the system counter
snapshot.

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.482153523@kernel.org
drivers/ptp/ptp_chardev.c
include/linux/timekeeping.h
sound/hda/common/controller.c