diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-04-27 15:40:16 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2018-05-19 13:57:33 +0200 |
commit | 06aa376903b6e8c8741395a4702d78d47c7c27c6 (patch) | |
tree | f314891509345522dc90fcb93c0e14369bc5b745 /arch/x86 | |
parent | b9ff604cff1135cc576cf952d394ed9401aa234b (diff) | |
download | linux-stable-06aa376903b6e8c8741395a4702d78d47c7c27c6.tar.gz linux-stable-06aa376903b6e8c8741395a4702d78d47c7c27c6.tar.bz2 linux-stable-06aa376903b6e8c8741395a4702d78d47c7c27c6.zip |
timekeeping: Add more coarse clocktai/boottime interfaces
The set of APIs we provide has a few holes for coarse times, e.g. we
provide ktime_get_coarse_boottime() and ktime_get_boottime_ts64(),
but not the combination of the two.
This adds four new functions:
ktime_get_coarse_boottime_ts64()
ktime_get_boottime_seconds()
ktime_get_coarse_clocktai_ts64()
ktime_get_clocktai_seconds()
to fill in some of the missing pieces. I have missed only the
ktime_get_boottime_seconds() accessor in a few occasions in
the past, but it seems better to just provide all four together,
as there is very little cost to having them.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: y2038@lists.linaro.org
Cc: John Stultz <john.stultz@linaro.org>
Link: https://lkml.kernel.org/r/20180427134016.2525989-6-arnd@arndb.de
Diffstat (limited to 'arch/x86')
0 files changed, 0 insertions, 0 deletions