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:
1 parent
c5f1835bec
commit
d5c72e3693
1 file changed
+1
-1
+1
-1
@@ -168,7 +168,7 @@ timer_dispatch(void)
|
||||
next_wake_time = timespec_add(now, TIMER_DEFER_REPEAT_NS);
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user