Merge pull request #4112 from enkiller/1203-0940

[timer] Fix the bug that the linked list is still mounted when the si…
This commit is contained in:
Bernard Xiong
2020-12-18 08:16:05 +08:00
committed by GitHub

View File

@@ -575,7 +575,7 @@ void rt_timer_check(void)
{
continue;
}
rt_list_remove(&(t->row[RT_TIMER_SKIP_LIST_LEVEL - 1]));
if ((t->parent.flag & RT_TIMER_FLAG_PERIODIC) &&
(t->parent.flag & RT_TIMER_FLAG_ACTIVATED))
{
@@ -663,7 +663,7 @@ void rt_soft_timer_check(void)
{
continue;
}
rt_list_remove(&(t->row[RT_TIMER_SKIP_LIST_LEVEL - 1]));
if ((t->parent.flag & RT_TIMER_FLAG_PERIODIC) &&
(t->parent.flag & RT_TIMER_FLAG_ACTIVATED))
{