linux: Fix local timer_repeat_until cache in timer.c
Make sure to update the local copy of timer_repeat_until when updating it. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -168,7 +168,7 @@ timer_dispatch(void)
|
|||||||
next_wake_time = timespec_add(now, TIMER_DEFER_REPEAT_NS);
|
next_wake_time = timespec_add(now, TIMER_DEFER_REPEAT_NS);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
timer_repeat_until = timespec_add(now, TIMER_IDLE_REPEAT_NS);
|
timer_repeat_until = tru = timespec_add(now, TIMER_IDLE_REPEAT_NS);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Next timer in the past or near future - wait for it to be ready
|
// Next timer in the past or near future - wait for it to be ready
|
||||||
|
|||||||
Reference in New Issue
Block a user