diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2014-07-16 17:03:55 -0400 |
|---|---|---|
| committer | John Stultz <john.stultz@linaro.org> | 2014-07-23 13:16:50 -0400 |
| commit | 166afb64511eef08e13331b970c44fe91cea45ef (patch) | |
| tree | 0354ca4d028a51653d299709dd9a2c7d3d13289a /include/linux/hrtimer.h | |
| parent | 24e4a8c3e8868874835b0f1ad6dd417341e99822 (diff) | |
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 'include/linux/hrtimer.h')
| -rw-r--r-- | include/linux/hrtimer.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/hrtimer.h b/include/linux/hrtimer.h index e84eb4f228cd..adf5056bd7b3 100644 --- a/include/linux/hrtimer.h +++ b/include/linux/hrtimer.h | |||
| @@ -457,12 +457,6 @@ extern void hrtimer_run_pending(void); | |||
| 457 | /* Bootup initialization: */ | 457 | /* Bootup initialization: */ |
| 458 | extern void __init hrtimers_init(void); | 458 | extern void __init hrtimers_init(void); |
| 459 | 459 | ||
| 460 | #if BITS_PER_LONG < 64 | ||
| 461 | extern u64 ktime_divns(const ktime_t kt, s64 div); | ||
| 462 | #else /* BITS_PER_LONG < 64 */ | ||
| 463 | # define ktime_divns(kt, div) (u64)((kt).tv64 / (div)) | ||
| 464 | #endif | ||
| 465 | |||
| 466 | /* Show pending timers: */ | 460 | /* Show pending timers: */ |
| 467 | extern void sysrq_timer_list_show(void); | 461 | extern void sysrq_timer_list_show(void); |
| 468 | 462 | ||
