-
- Downloads
sched: prevent a re-armed timer from being ignored
When a hardware timer fires, we walk over the timer list, expiring timers and erasing them from the list. This is all well and good, except that a timer may rearm itself in its callback (this only holds for timer_base clients, not sched::timer, which consumes its own callback). If it does, we end up erasing it even though it wants to be triggered. Fix by checking for the armed state before erasing. Signed-off-by:Avi Kivity <avi@cloudius-systems.com> Tested-by:
Pekka Enberg <penberg@cloudius-systems.com> Signed-off-by:
Pekka Enberg <penberg@cloudius-systems.com>
Loading
Please register or sign in to comment