mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-24 07:46:42 +00:00
parent
964e9e91c7
commit
294c7e5076
@ -61,6 +61,12 @@ int hrtimer_start_range_ns(struct hrtimer *timer, ktime_t tim,
|
||||
{
|
||||
unsigned long expires = tim.tv64 / (NSEC_PER_MSEC * HZ);
|
||||
|
||||
/*
|
||||
* Prevent truncation through rounding the values by adding 1 jiffy
|
||||
* in this case.
|
||||
*/
|
||||
expires += (expires == jiffies);
|
||||
|
||||
if (!Lx::timer().find(timer))
|
||||
Lx::timer().add(timer, Lx::Timer::HR);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user