From: John Stultz Date: Fri, 19 Dec 2014 02:04:34 +0000 (-0800) Subject: time: Expose get_monotonic_boottime64 for in-kernel use X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2e0c78ee5ba4d777ecf22c8f40cc968b4308ca88;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git time: Expose get_monotonic_boottime64 for in-kernel use As part of the 2038 conversion process, add a get_monotonic_boottime64 accessor so we can depracate get_monotonic_boottime. Cc: pang.xunlei Cc: Arnd Bergmann Cc: Thomas Gleixner Cc: Ingo Molnar Signed-off-by: John Stultz --- diff --git a/include/linux/timekeeping.h b/include/linux/timekeeping.h index 91480137aa39..3eaae4754275 100644 --- a/include/linux/timekeeping.h +++ b/include/linux/timekeeping.h @@ -229,6 +229,11 @@ static inline void get_monotonic_boottime(struct timespec *ts) *ts = ktime_to_timespec(ktime_get_boottime()); } +static inline void get_monotonic_boottime64(struct timespec64 *ts) +{ + *ts = ktime_to_timespec64(ktime_get_boottime()); +} + static inline void timekeeping_clocktai(struct timespec *ts) { *ts = ktime_to_timespec(ktime_get_clocktai());