]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
timekeeping: Remove ktime_get_snapshot()
authorThomas Gleixner <tglx@kernel.org>
Fri, 29 May 2026 20:00:56 +0000 (22:00 +0200)
committerThomas Gleixner <tglx@kernel.org>
Thu, 4 Jun 2026 09:04:17 +0000 (11:04 +0200)
All users have been converted to ktime_get_snapshot_id().

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: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20260529195557.795510496@kernel.org
include/linux/timekeeping.h

index fff6d9e319c44b1692ec52738ff1a2fa56ecaee4..2d9860ecb285107379dd2a3071a5f137546d1ef1 100644 (file)
@@ -350,11 +350,6 @@ extern int get_device_system_crosststamp(
  */
 extern void ktime_get_snapshot_id(clockid_t clock_id, struct system_time_snapshot *systime_snapshot);
 
-static inline void ktime_get_snapshot(struct system_time_snapshot *systime_snapshot)
-{
-       ktime_get_snapshot_id(CLOCK_REALTIME, systime_snapshot);
-}
-
 /*
  * Persistent clock related interfaces
  */