diff options
author | John Stultz <john.stultz@linaro.org> | 2011-02-14 18:43:08 -0800 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2011-02-21 12:53:07 -0800 |
commit | 314ac37150011ebb398f522db528d2dbcc611189 (patch) | |
tree | 0731fced7713d3889bd783577673068a6bc93796 /include/linux/time.h | |
parent | abb3a4ea2e0ea7114a4475745da2f32bd9ad5b73 (diff) | |
download | op-kernel-dev-314ac37150011ebb398f522db528d2dbcc611189.zip op-kernel-dev-314ac37150011ebb398f522db528d2dbcc611189.tar.gz |
time: Extend get_xtime_and_monotonic_offset() to also return sleep
Extend get_xtime_and_monotonic_offset to
get_xtime_and_monotonic_and_sleep_offset().
CC: Jamie Lokier <jamie@shareable.org>
CC: Thomas Gleixner <tglx@linutronix.de>
CC: Alexander Shishkin <virtuoso@slind.org>
CC: Arve Hjønnevåg <arve@android.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'include/linux/time.h')
-rw-r--r-- | include/linux/time.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/time.h b/include/linux/time.h index fa39150..02d48fb 100644 --- a/include/linux/time.h +++ b/include/linux/time.h @@ -124,7 +124,8 @@ unsigned long get_seconds(void); struct timespec current_kernel_time(void); struct timespec __current_kernel_time(void); /* does not take xtime_lock */ struct timespec get_monotonic_coarse(void); -void get_xtime_and_monotonic_offset(struct timespec *xtim, struct timespec *wtom); +void get_xtime_and_monotonic_and_sleep_offset(struct timespec *xtim, + struct timespec *wtom, struct timespec *sleep); #define CURRENT_TIME (current_kernel_time()) #define CURRENT_TIME_SEC ((struct timespec) { get_seconds(), 0 }) |