[patch 17/24] timekeeping: Remove ktime_get_snapshot()
From: Thomas Gleixner
Date: Tue May 26 2026 - 13:37:54 EST
All users have been converted to ktime_get_snapshot_id().
Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxx>
---
include/linux/timekeeping.h | 5 -----
1 file changed, 5 deletions(-)
--- a/include/linux/timekeeping.h
+++ b/include/linux/timekeeping.h
@@ -351,11 +351,6 @@ extern int get_device_system_crosststamp
extern bool ktime_get_snapshot_id(struct system_time_snapshot *systime_snapshot,
clockid_t clock_id);
-static inline void ktime_get_snapshot(struct system_time_snapshot *systime_snapshot)
-{
- WARN_ON_ONCE(!ktime_get_snapshot_id(systime_snapshot, CLOCK_REALTIME));
-}
-
/*
* Persistent clock related interfaces
*/