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:
parent
a14eb93ae7
commit
93f7cd2d53
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue