[tip: timers/ptp] timekeeping: Remove ktime_get_snapshot()

From: tip-bot2 for Thomas Gleixner

Date: Thu Jun 04 2026 - 05:25:24 EST


The following commit has been merged into the timers/ptp branch of tip:

Commit-ID: b21d442c9aebe5ed95303883d3365e430e134cf1
Gitweb: https://git.kernel.org/tip/b21d442c9aebe5ed95303883d3365e430e134cf1
Author: Thomas Gleixner <tglx@xxxxxxxxxx>
AuthorDate: Fri, 29 May 2026 22:00:56 +02:00
Committer: Thomas Gleixner <tglx@xxxxxxxxxx>
CommitterDate: Thu, 04 Jun 2026 11:04:17 +02:00

timekeeping: Remove ktime_get_snapshot()

All users have been converted to ktime_get_snapshot_id().

Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxx>
Tested-by: David Woodhouse <dwmw@xxxxxxxxxxxx>
Tested-by: Arthur Kiyanovski <akiyano@xxxxxxxxxx>
Reviewed-by: David Woodhouse <dwmw@xxxxxxxxxxxx>
Reviewed-by: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>
Reviewed-by: Jacob Keller <jacob.e.keller@xxxxxxxxx>
Link: https://patch.msgid.link/20260529195557.795510496@xxxxxxxxxx
---
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
*/