diff options
author | John Stultz <john.stultz@linaro.org> | 2014-12-18 21:04:34 -0500 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2015-01-23 20:21:55 -0500 |
commit | 2e0c78ee5ba4d777ecf22c8f40cc968b4308ca88 (patch) | |
tree | cf5d6dcd3c8449dd57e2cc4ed8c5447c00d2c3c0 | |
parent | d08c0cdd26d48751c15aa2b4479a410594fee9ac (diff) |
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: John Stultz <john.stultz@linaro.org>
-rw-r--r-- | include/linux/timekeeping.h | 5 |
1 files changed, 5 insertions, 0 deletions
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) | |||
229 | *ts = ktime_to_timespec(ktime_get_boottime()); | 229 | *ts = ktime_to_timespec(ktime_get_boottime()); |
230 | } | 230 | } |
231 | 231 | ||
232 | static inline void get_monotonic_boottime64(struct timespec64 *ts) | ||
233 | { | ||
234 | *ts = ktime_to_timespec64(ktime_get_boottime()); | ||
235 | } | ||
236 | |||
232 | static inline void timekeeping_clocktai(struct timespec *ts) | 237 | static inline void timekeeping_clocktai(struct timespec *ts) |
233 | { | 238 | { |
234 | *ts = ktime_to_timespec(ktime_get_clocktai()); | 239 | *ts = ktime_to_timespec(ktime_get_clocktai()); |