summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2014-12-19 03:04:34 +0100
committerJohn Stultz <john.stultz@linaro.org>2015-01-24 02:21:55 +0100
commit2e0c78ee5ba4d777ecf22c8f40cc968b4308ca88 (patch)
treecf5d6dcd3c8449dd57e2cc4ed8c5447c00d2c3c0 /include
parenttime: Expose getboottime64 for in-kernel uses (diff)
downloadlinux-2e0c78ee5ba4d777ecf22c8f40cc968b4308ca88.tar.xz
linux-2e0c78ee5ba4d777ecf22c8f40cc968b4308ca88.zip
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')
-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 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());