Skip to contentSkip to conversation

time/posix-timers:Convert to the 64bit methods for k_clock callback functions

PATCH Superseded Baolin Wang 1 participant 1 message Apr 30, 2015

Subsystems (2)

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 8/15 time/posix-timers:Convert to the 64bit methods for k_clock callback functions

This patch converts the timepsec type to timespec64 type, and converts the itimerspec type to itimerspec64 type for the k_clock callback functions.

This patch also converts the timespec type to timespec64 type for timekeeping_clocktai() function which is used only in the posix-timers.c file.

---
 include/linux/timekeeping.h |    4 +-
 kernel/time/posix-timers.c  |   96 +++++++++++++++++++++----------------------
 kernel/time/timekeeping.h   |    2 +-
 3 files changed, 51 insertions(+), 51 deletions(-)
include/linux/timekeeping.h +2 -2
index 89beb62..c3345d5 100644
@@ -250,9 +250,9 @@ static inline void get_monotonic_boottime64(struct timespec64 *ts)
 	*ts = ktime_to_timespec64(ktime_get_boottime());
 }
 
-static inline void timekeeping_clocktai(struct timespec *ts)
+static inline void timekeeping_clocktai(struct timespec64 *ts)
 {
-	*ts = ktime_to_timespec(ktime_get_clocktai());
+	*ts = ktime_to_timespec64(ktime_get_clocktai());
 }
 
 /*
kernel/time/posix-timers.c +48 -48

217 lines not on this page · raw message

kernel/time/timekeeping.h +1 -1
index 1d91416..144af14 100644
@@ -15,7 +15,7 @@ extern u64 timekeeping_max_deferment(void);
 extern int timekeeping_inject_offset(struct timespec *ts);
 extern s32 timekeeping_get_tai_offset(void);
 extern void timekeeping_set_tai_offset(s32 tai_offset);
-extern void timekeeping_clocktai(struct timespec *ts);
+extern void timekeeping_clocktai(struct timespec64 *ts);
 extern int timekeeping_suspend(void);
 extern void timekeeping_resume(void);
 
Signature · 1 line
1.7.9.5