Skip to content
Snippets Groups Projects
Commit 870d8410 authored by Avi Kivity's avatar Avi Kivity Committed by Pekka Enberg
Browse files

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: default avatarAvi Kivity <avi@cloudius-systems.com>
Tested-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
Signed-off-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
parent 15a32ac8
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment