aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/mpi/mpiutil.c
diff options
context:
space:
mode:
authorThomas Gleixner <[email protected]>2025-07-01 13:26:58 +0000
committerThomas Gleixner <[email protected]>2025-07-03 12:18:06 +0000
commit5b605dbee07dda8fd538af1f07cbf1baf0a49cbc (patch)
tree6b85d5c42945b6d206898c656c70e192697d3e2d /lib/crypto/mpi/mpiutil.c
parentLinux 6.16-rc1 (diff)
downloadkernel-5b605dbee07dda8fd538af1f07cbf1baf0a49cbc.tar.gz
kernel-5b605dbee07dda8fd538af1f07cbf1baf0a49cbc.zip
timekeeping: Provide ktime_get_clock_ts64()
PTP implements an inline switch case for taking timestamps from various POSIX clock IDs, which already consumes quite some text space. Expanding it for auxiliary clocks really becomes too big for inlining. Provide a out of line version. The function invalidates the timestamp in case the clock is invalid. The invalidation allows to implement a validation check without the need to propagate a return value through deep existing call chains. Due to merge logistics this temporarily defines CLOCK_AUX[_LAST] if undefined, so that the plain branch, which does not contain any of the core timekeeper changes, can be pulled into the networking tree as prerequisite for the PTP side changes. These temporary defines are removed after that branch is merged into the tip::timers/ptp branch. That way the result in -next or upstream in the next merge window has zero dependencies. Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Vadim Fedorenko <[email protected]> Acked-by: John Stultz <[email protected]> Link: https://lore.kernel.org/all/[email protected]
Diffstat (limited to 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions