diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-04-27 15:40:13 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2018-05-19 13:57:32 +0200 |
commit | edca71fecb77e2697337d192cbfe96f513407761 (patch) | |
tree | cfaf4a1c3200f1dc396e28076d17229930e5fece /include/linux/timekeeping32.h | |
parent | 4f0fad9a603aee91a374e8411c23953894a77479 (diff) | |
download | linux-edca71fecb77e2697337d192cbfe96f513407761.tar.gz linux-edca71fecb77e2697337d192cbfe96f513407761.tar.bz2 linux-edca71fecb77e2697337d192cbfe96f513407761.zip |
timekeeping: Clean up ktime_get_real_ts64
In a move to make ktime_get_*() the preferred driver interface into the
timekeeping code, sanitizes ktime_get_real_ts64() to be a proper exported
symbol rather than an alias for getnstimeofday64().
The internal __getnstimeofday64() is no longer used, so remove that
and merge it into ktime_get_real_ts64().
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-3-arnd@arndb.de
Diffstat (limited to 'include/linux/timekeeping32.h')
-rw-r--r-- | include/linux/timekeeping32.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/include/linux/timekeeping32.h b/include/linux/timekeeping32.h index 4ea45d0df1d4..5abff52d07fd 100644 --- a/include/linux/timekeeping32.h +++ b/include/linux/timekeeping32.h @@ -27,20 +27,11 @@ static inline int do_settimeofday(const struct timespec *ts) return do_settimeofday64(&ts64); } -static inline int __getnstimeofday(struct timespec *ts) -{ - struct timespec64 ts64; - int ret = __getnstimeofday64(&ts64); - - *ts = timespec64_to_timespec(ts64); - return ret; -} - static inline void getnstimeofday(struct timespec *ts) { struct timespec64 ts64; - getnstimeofday64(&ts64); + ktime_get_real_ts64(&ts64); *ts = timespec64_to_timespec(ts64); } @@ -56,7 +47,7 @@ static inline void ktime_get_real_ts(struct timespec *ts) { struct timespec64 ts64; - getnstimeofday64(&ts64); + ktime_get_real_ts64(&ts64); *ts = timespec64_to_timespec(ts64); } |