With the plain nanoseconds based ktime_t we can simply use ktime_divns() instead of going through loops and hoops of timespec/timeval conversion.
Showing the changes to kernel/time/hrtimer.c (1 of 3 files). Show all
Unified · Split
| @@ -280,6 +280,7 @@ u64 ktime_divns(const ktime_t kt, s64 div) · 279 unmodified lines | |||
| 280 | 280 | ||
| 281 | return dclc; | 281 | return dclc; |
| 282 | } | 282 | } |
| 283 | EXPORT_SYMBOL_GPL(ktime_divns); | ||
| 283 | #endif /* BITS_PER_LONG >= 64 */ | 284 | #endif /* BITS_PER_LONG >= 64 */ |
| 284 | 285 | ||
| 285 | /* | 286 | /* |