summaryrefslogtreecommitdiff
path: root/include/linux/timekeeping.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2015-08-20 21:13:22 +0200
committerThomas Gleixner <tglx@linutronix.de>2015-08-20 21:13:22 +0200
commit05ddaa4d6d3806bebdf14f7c5de742a6e0e3b689 (patch)
treecbad6d1db5ce324c75b0eecdfd4c0857cfee9347 /include/linux/timekeeping.h
parentb48362d8aaf32aeb4a75f5c556c652ffeeb1be5d (diff)
parent9ca308506062fc4a4ee8ca7ad2f71033c831c2fb (diff)
Merge branch 'fortglx/4.3/time' of https://git.linaro.org/people/john.stultz/linux into timers/core
- A handful or y2038 related items - A walltime to monotonic limit - Small fixes for timespec_trunc() and timer_list output
Diffstat (limited to 'include/linux/timekeeping.h')
-rw-r--r--include/linux/timekeeping.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/timekeeping.h b/include/linux/timekeeping.h
index 6e191e4e6ab6..ba0ae09cbb21 100644
--- a/include/linux/timekeeping.h
+++ b/include/linux/timekeeping.h
@@ -18,10 +18,17 @@ extern int do_sys_settimeofday(const struct timespec *tv,
* Kernel time accessors
*/
unsigned long get_seconds(void);
-struct timespec current_kernel_time(void);
+struct timespec64 current_kernel_time64(void);
/* does not take xtime_lock */
struct timespec __current_kernel_time(void);
+static inline struct timespec current_kernel_time(void)
+{
+ struct timespec64 now = current_kernel_time64();
+
+ return timespec64_to_timespec(now);
+}
+
/*
* timespec based interfaces
*/