The following commit has been merged into the timers/ptp branch of tip:
Commit-ID: bfa570d832ea4bec2cb715339c34154f493887fd
Gitweb: https://git.kernel.org/tip/bfa570d832ea4bec2cb715339c34154f493887fd
Author: Thomas Gleixner <tglx@kernel.org>
AuthorDate: Fri, 29 May 2026 22:00:56 +02:00
Committer: Thomas Gleixner <tglx@kernel.org>
CommitterDate: Tue, 02 Jun 2026 11:39:59 +02:00
timekeeping: Remove ktime_get_snapshot()
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 | 5 -----
1 file changed, 5 deletions(-)
diff --git a/include/linux/timekeeping.h b/include/linux/timekeeping.h
index fff6d9e..2d9860e 100644
--- a/include/linux/timekeeping.h
+++ b/include/linux/timekeeping.h
@@ -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
*/