summaryrefslogtreecommitdiffstats
path: root/include/linux/timekeeping.h
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2014-12-18 18:04:34 -0800
committerJohn Stultz <john.stultz@linaro.org>2015-01-23 17:21:55 -0800
commit2e0c78ee5ba4d777ecf22c8f40cc968b4308ca88 (patch)
treecf5d6dcd3c8449dd57e2cc4ed8c5447c00d2c3c0 /include/linux/timekeeping.h
parentd08c0cdd26d48751c15aa2b4479a410594fee9ac (diff)
downloadop-kernel-dev-2e0c78ee5ba4d777ecf22c8f40cc968b4308ca88.zip
op-kernel-dev-2e0c78ee5ba4d777ecf22c8f40cc968b4308ca88.tar.gz
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>
Diffstat (limited to 'include/linux/timekeeping.h')
-rw-r--r--include/linux/timekeeping.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/timekeeping.h b/include/linux/timekeeping.h
index 9148013..3eaae47 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());
OpenPOWER on IntegriCloud