mirror of
https://github.com/Fishwaldo/build.git
synced 2025-03-29 18:21:27 +00:00
24 lines
663 B
Diff
24 lines
663 B
Diff
diff --git a/include/linux/timekeeping32.h b/include/linux/timekeeping32.h
|
|
index a502616..43a3837 100644
|
|
--- a/include/linux/timekeeping32.h
|
|
+++ b/include/linux/timekeeping32.h
|
|
@@ -53,6 +53,19 @@ static inline void getboottime(struct timespec *ts)
|
|
}
|
|
|
|
/*
|
|
+ * Timespec interfaces utilizing the ktime based ones
|
|
+ */
|
|
+static inline void get_monotonic_boottime(struct timespec *ts)
|
|
+{
|
|
+ *ts = ktime_to_timespec(ktime_get_boottime());
|
|
+}
|
|
+
|
|
+static inline void timekeeping_clocktai(struct timespec *ts)
|
|
+{
|
|
+ *ts = ktime_to_timespec(ktime_get_clocktai());
|
|
+}
|
|
+
|
|
+/*
|
|
* Persistent clock related interfaces
|
|
*/
|
|
extern void read_persistent_clock(struct timespec *ts);
|