sched: fix omitted merging the pending queue regression
This commit fixes the regression from https://github.com/apache/nuttx/pull/13995 Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
parent
8acc3b4771
commit
d26c2380e4
1 changed files with 4 additions and 0 deletions
|
|
@ -104,6 +104,10 @@ bool nxsched_remove_readytorun(FAR struct tcb_s *rtcb)
|
|||
void nxsched_remove_self(FAR struct tcb_s *tcb)
|
||||
{
|
||||
nxsched_remove_readytorun(tcb);
|
||||
if (list_pendingtasks()->head)
|
||||
{
|
||||
nxsched_merge_pending();
|
||||
}
|
||||
}
|
||||
#endif /* !CONFIG_SMP */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue