ktime: Sanitize ktime_to_us/ms conversion
authorThomas Gleixner <tglx@linutronix.de>
Wed, 16 Jul 2014 21:03:55 +0000 (21:03 +0000)
committerDanny Wood <danwood76@gmail.com>
Tue, 28 Sep 2021 12:06:40 +0000 (13:06 +0100)
commitc06ecb5f940200504159bd3bd63c0a29c4780b83
tree1f00c64c5833ecb395e5f8861531d4eccb391749
parent71f0647ccc7cdc4f3e8cbaf9a8fb0a3fb1d227c1
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.

Change-Id: Ib33ea80bc3fdd26fcada1072b1f8ffc26081c0ba
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>
Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
include/linux/hrtimer.h
include/linux/ktime.h
kernel/hrtimer.c