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:
hujun5 2024-10-10 13:37:33 +08:00 committed by Xiang Xiao
parent 8acc3b4771
commit d26c2380e4

View file

@ -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 */