mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
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:
committed by
John Stultz
parent
f111adfdd7
commit
7c032df557
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user