timekeeping: Provide time getters for auxiliary clocks
authorThomas Gleixner <tglx@linutronix.de>
Wed, 25 Jun 2025 18:38:31 +0000 (20:38 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 27 Jun 2025 18:13:12 +0000 (20:13 +0200)
commit05bc6e6290f91d2d40086ab4ef52da21c14ec4b6
tree5902335116fad2bebb09dc191596782199711962
parent9f7729480a2c771bbe49b7eab034a8eaa5e27bfb
timekeeping: Provide time getters for auxiliary clocks

Provide interfaces similar to the ktime_get*() family which provide access
to the auxiliary clocks.

These interfaces have a boolean return value, which indicates whether the
accessed clock is valid or not.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: John Stultz <jstultz@google.com>
Link: https://lore.kernel.org/all/20250625183757.868342628@linutronix.de
include/linux/posix-timers.h
include/linux/timekeeping.h
kernel/time/timekeeping.c