timekeeping: Standardize on ktime_get_*() naming
authorArnd Bergmann <arnd@arndb.de>
Fri, 27 Apr 2018 13:40:14 +0000 (15:40 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 19 May 2018 11:57:32 +0000 (13:57 +0200)
commitfb7fcc96a86cfaef0f6dcc0665516aa68611e736
tree1e09a71e1dde31f7cfab5080dba19dec0dadb049
parentedca71fecb77e2697337d192cbfe96f513407761
timekeeping: Standardize on ktime_get_*() naming

The current_kernel_time64, get_monotonic_coarse64, getrawmonotonic64,
get_monotonic_boottime64 and timekeeping_clocktai64 interfaces have
rather inconsistent naming, and they differ in the calling conventions
by passing the output either by reference or as a return value.

Rename them to ktime_get_coarse_real_ts64, ktime_get_coarse_ts64,
ktime_get_raw_ts64, ktime_get_boottime_ts64 and ktime_get_clocktai_ts64
respectively, and provide the interfaces with macros or inline
functions as needed.

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-4-arnd@arndb.de
include/linux/timekeeping.h
include/linux/timekeeping32.h
kernel/time/timekeeping.c