diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-04-27 15:40:15 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2018-05-19 13:57:32 +0200 |
commit | b9ff604cff1135cc576cf952d394ed9401aa234b (patch) | |
tree | 2987c08c1e0deb9063d4157a9c51afd0155241de /kernel/fork.c | |
parent | fb7fcc96a86cfaef0f6dcc0665516aa68611e736 (diff) | |
download | linux-b9ff604cff1135cc576cf952d394ed9401aa234b.tar.bz2 |
timekeeping: Add ktime_get_coarse_with_offset
I have run into a couple of drivers using current_kernel_time()
suffering from the y2038 problem, and they could be converted
to using ktime_t, but don't have interfaces that skip the nanosecond
calculation at the moment.
This introduces ktime_get_coarse_with_offset() as a simpler
variant of ktime_get_with_offset(), and adds wrappers for the
three time domains we support with the existing function.
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-5-arnd@arndb.de
Diffstat (limited to 'kernel/fork.c')
0 files changed, 0 insertions, 0 deletions