Commit 2e0c78ee authored by John Stultz's avatar John Stultz

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 <pang.xunlei@linaro.org>
Cc: Arnd Bergmann <arnd.bergmann@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
parent d08c0cdd
...@@ -229,6 +229,11 @@ static inline void get_monotonic_boottime(struct timespec *ts) ...@@ -229,6 +229,11 @@ static inline void get_monotonic_boottime(struct timespec *ts)
*ts = ktime_to_timespec(ktime_get_boottime()); *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) static inline void timekeeping_clocktai(struct timespec *ts)
{ {
*ts = ktime_to_timespec(ktime_get_clocktai()); *ts = ktime_to_timespec(ktime_get_clocktai());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment