Re: kern_time.c: use timeout_add_tv(9)

2019-07-21 Thread Scott Cheloha
On Sun, Jul 21, 2019 at 04:36:00AM +0200, Klemens Nanni wrote: > Simply omit conversions from timevals to hz and use the proper API. > > First one is trivial, the second one truncates the converted number of > ticks to at leat one, which timeout_add_*(9) does automatically, so stop > doing it

kern_time.c: use timeout_add_tv(9)

2019-07-20 Thread Klemens Nanni
Simply omit conversions from timevals to hz and use the proper API. First one is trivial, the second one truncates the converted number of ticks to at leat one, which timeout_add_*(9) does automatically, so stop doing it manually. Tested by running it on my X230. OK? Index: kern_time.c