]> git.baikalelectronics.ru Git - kernel.git/commit
ktime: Sanitize ktime_to_us/ms conversion
authorThomas Gleixner <tglx@linutronix.de>
Wed, 16 Jul 2014 21:03:55 +0000 (21:03 +0000)
committerJohn Stultz <john.stultz@linaro.org>
Wed, 23 Jul 2014 17:16:50 +0000 (10:16 -0700)
commit9a34c786c198c55ab395588435a02fcacfeab848
tree0354ca4d028a51653d299709dd9a2c7d3d13289a
parente592fe3ec7a25afc97ebadd8e8735e1c8689e44b
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>
include/linux/hrtimer.h
include/linux/ktime.h
kernel/time/hrtimer.c