mirror of
https://github.com/Fishwaldo/build.git
synced 2025-07-24 05:48:41 +00:00
switch to 5.4.y
This commit is contained in:
parent
1a4c152fc6
commit
aafb70a9a3
189 changed files with 1212088 additions and 222 deletions
20
patch/kernel/sunxi-dev/timekeeping32-tweaks-for-5.0.y.patch
Normal file
20
patch/kernel/sunxi-dev/timekeeping32-tweaks-for-5.0.y.patch
Normal file
|
@ -0,0 +1,20 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue