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
commit 9971067f49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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