aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/timekeeper_internal.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2014-07-16 17:04:10 -0400
committerJohn Stultz <john.stultz@linaro.org>2014-07-23 13:17:57 -0400
commit7c032df5570388044b4efda3d9f4d2ffb96a3116 (patch)
treeab8242028af30b3b914b8c33cdfe30fb2feca6c2 /include/linux/timekeeper_internal.h
parentf111adfdd7ff7d9fe54b6efa440b80824984749c (diff)
timekeeping: Provide internal ktime_t based data
The ktime_t based interfaces are used a lot in performance critical code pathes. Add ktime_t based data so the interfaces don't have to convert from the xtime/timespec based data. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'include/linux/timekeeper_internal.h')
-rw-r--r--include/linux/timekeeper_internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/timekeeper_internal.h b/include/linux/timekeeper_internal.h
index 2cb96235c249..87e0992564f2 100644
--- a/include/linux/timekeeper_internal.h
+++ b/include/linux/timekeeper_internal.h
@@ -36,6 +36,9 @@ struct timekeeper {
36 /* Clock shifted nano seconds */ 36 /* Clock shifted nano seconds */
37 u64 xtime_nsec; 37 u64 xtime_nsec;
38 38
39 /* Monotonic base time */
40 ktime_t base_mono;
41
39 /* Current CLOCK_REALTIME time in seconds */ 42 /* Current CLOCK_REALTIME time in seconds */
40 u64 xtime_sec; 43 u64 xtime_sec;
41 /* CLOCK_REALTIME to CLOCK_MONOTONIC offset */ 44 /* CLOCK_REALTIME to CLOCK_MONOTONIC offset */