build/patch/kernel/rockchip64-dev/timekeeping32-tweaks-for-5.0.y.patch.disabled
Igor Pečovnik 5e251dc414
Merged rockpi-s dev info rockchip64-dev and moved to 5.6.y (#1874)
Added all patches from @ashthespy repository
2020-04-06 19:06:28 +02:00

20 lines
541 B
Text

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