mirror of
https://github.com/Fishwaldo/build.git
synced 2025-03-24 07:41:53 +00:00
20 lines
541 B
Diff
20 lines
541 B
Diff
diff --git a/include/linux/timekeeping32.h b/include/linux/timekeeping32.h
|
|
index cc59cc9..a0f5143 100644
|
|
--- a/include/linux/timekeeping32.h
|
|
+++ b/include/linux/timekeeping32.h
|
|
@@ -43,4 +43,15 @@ static inline void getboottime(struct timespec *ts)
|
|
*ts = timespec64_to_timespec(ts64);
|
|
}
|
|
|
|
+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());
|
|
+}
|
|
+
|
|
+
|
|
#endif
|