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>
This commit is contained in:
parent
f111adfdd7
commit
7c032df557
2 changed files with 25 additions and 0 deletions
|
|
@ -36,6 +36,9 @@ struct timekeeper {
|
|||
/* Clock shifted nano seconds */
|
||||
u64 xtime_nsec;
|
||||
|
||||
/* Monotonic base time */
|
||||
ktime_t base_mono;
|
||||
|
||||
/* Current CLOCK_REALTIME time in seconds */
|
||||
u64 xtime_sec;
|
||||
/* CLOCK_REALTIME to CLOCK_MONOTONIC offset */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue