sched/sched/sched_cpuselect.c: For SMP, In order to find the cpu with the lowest priority thread, we have to remember the already found lowest priority. Noted by Anonymous in Issue #75

This commit is contained in:
Gregory Nutt 2017-11-06 13:33:46 -06:00
parent a14eb93ae7
commit 93f7cd2d53
1 changed files with 1 additions and 0 deletions

View File

@ -113,6 +113,7 @@ int sched_cpu_select(cpu_set_t affinity)
else if (rtcb->sched_priority < minprio)
{
DEBUGASSERT(rtcb->sched_priority > 0);
minprio = rtcb->sched_priority;
cpu = i;
}
}