diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-10 10:13:28 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-10 10:13:28 -0800 |
commit | d82012695ef29e4e1c8153ccf43098ec8e50369e (patch) | |
tree | 80a379de91a332a6dca5f035d10421bb6d988b80 /include/linux/timekeeping.h | |
parent | 3eb5b893ebec7325ac9e6b8e4864af89a9ca1ed1 (diff) | |
parent | dbe7aa622db96b5cd601f59d09c4f00b98b76079 (diff) | |
download | op-kernel-dev-d82012695ef29e4e1c8153ccf43098ec8e50369e.zip op-kernel-dev-d82012695ef29e4e1c8153ccf43098ec8e50369e.tar.gz |
Merge branch 'timers-2038-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull more 2038 timer work from Thomas Gleixner:
"Two more patches for the ongoing 2038 work:
- New accessors to clock MONOTONIC and REALTIME seconds
This is a seperate branch as Arnd has follow up work depending on
this"
* 'timers-2038-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
timekeeping: Provide y2038 safe accessor to the seconds portion of CLOCK_REALTIME
timekeeping: Provide fast accessor to the seconds part of CLOCK_MONOTONIC
Diffstat (limited to 'include/linux/timekeeping.h')
-rw-r--r-- | include/linux/timekeeping.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/timekeeping.h b/include/linux/timekeeping.h index 961fea3..9b63d13 100644 --- a/include/linux/timekeeping.h +++ b/include/linux/timekeeping.h @@ -28,6 +28,8 @@ struct timespec __current_kernel_time(void); struct timespec64 get_monotonic_coarse64(void); extern void getrawmonotonic64(struct timespec64 *ts); extern void ktime_get_ts64(struct timespec64 *ts); +extern time64_t ktime_get_seconds(void); +extern time64_t ktime_get_real_seconds(void); extern int __getnstimeofday64(struct timespec64 *tv); extern void getnstimeofday64(struct timespec64 *tv); |