You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ma...@apache.org on 2022/09/17 08:37:55 UTC
[incubator-nuttx] 01/02: SMP: fix assert failed when one task set to 255
This is an automated email from the ASF dual-hosted git repository.
masayuki pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 615bc9f0e266cddfca55945cc0d522d695d3dfb4
Author: ligd <li...@xiaomi.com>
AuthorDate: Fri Aug 12 21:17:29 2022 +0800
SMP: fix assert failed when one task set to 255
Signed-off-by: ligd <li...@xiaomi.com>
---
sched/sched/sched_cpuselect.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sched/sched/sched_cpuselect.c b/sched/sched/sched_cpuselect.c
index ec9b47db85..f1e1289f30 100644
--- a/sched/sched/sched_cpuselect.c
+++ b/sched/sched/sched_cpuselect.c
@@ -92,7 +92,7 @@ int nxsched_select_cpu(cpu_set_t affinity)
DEBUGASSERT(rtcb->sched_priority == 0);
return i;
}
- else if (rtcb->sched_priority < minprio)
+ else if (rtcb->sched_priority <= minprio)
{
DEBUGASSERT(rtcb->sched_priority > 0);
minprio = rtcb->sched_priority;