timekeeping: Provide ktime_get_raw()

Provide a ktime_t based interface for raw monotonic time.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
This commit is contained in:
Thomas Gleixner
2014-07-16 21:05:04 +00:00
committed by John Stultz
parent 2044fdb03e
commit f519b1a2e0
3 changed files with 34 additions and 0 deletions

View File

@@ -54,6 +54,9 @@ struct timekeeper {
/* The current UTC to TAI offset in seconds */
s32 tai_offset;
/* Monotonic raw base time */
ktime_t base_raw;
/* The raw monotonic time for the CLOCK_MONOTONIC_RAW posix clock. */
struct timespec64 raw_time;