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:
Kevin O'Connor 2021-04-18 12:17:00 -04:00
parent c5f1835bec
commit d5c72e3693
1 changed files with 1 additions and 1 deletions

View File

@ -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