mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-05-28 15:34:31 +00:00
fix(kernel/scheduler): threads were skipped if one has affinity for other core
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
parent
f8f08a11db
commit
a6ca98987e
@ -377,7 +377,10 @@ namespace Tasking::Scheduler
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (nextThread->Info.Affinity[CurrentCPU->ID] == false)
|
if (nextThread->Info.Affinity[CurrentCPU->ID] == false)
|
||||||
continue;
|
{
|
||||||
|
TempIndex++;
|
||||||
|
goto RetryAnotherThread;
|
||||||
|
}
|
||||||
|
|
||||||
CurrentCPU->CurrentThread = nextThread;
|
CurrentCPU->CurrentThread = nextThread;
|
||||||
gnat_schedbg("[thd 0 -> end] Scheduling thread %d parent of %s->%d Procs %d",
|
gnat_schedbg("[thd 0 -> end] Scheduling thread %d parent of %s->%d Procs %d",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user