diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2014-07-16 23:03:55 +0200 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2014-07-23 19:16:50 +0200 |
commit | 166afb64511eef08e13331b970c44fe91cea45ef (patch) | |
tree | 0354ca4d028a51653d299709dd9a2c7d3d13289a /kernel/time/hrtimer.c | |
parent | ktime: Kill non-scalar ktime_t implementation for 2038 (diff) | |
download | linux-166afb64511eef08e13331b970c44fe91cea45ef.tar.xz linux-166afb64511eef08e13331b970c44fe91cea45ef.zip |
ktime: Sanitize ktime_to_us/ms conversion
With the plain nanoseconds based ktime_t we can simply use
ktime_divns() instead of going through loops and hoops of
timespec/timeval conversion.
Reported-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to '')
-rw-r--r-- | kernel/time/hrtimer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c index 19f211051c35..64843a836637 100644 --- a/kernel/time/hrtimer.c +++ b/kernel/time/hrtimer.c @@ -280,6 +280,7 @@ u64 ktime_divns(const ktime_t kt, s64 div) return dclc; } +EXPORT_SYMBOL_GPL(ktime_divns); #endif /* BITS_PER_LONG >= 64 */ /* |