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:
EnderIce2 2025-03-30 19:08:18 +00:00
parent f8f08a11db
commit a6ca98987e
Signed by: enderice2
GPG Key ID: FEB6B8A8507BA62E

View File

@ -377,7 +377,10 @@ namespace Tasking::Scheduler
}
if (nextThread->Info.Affinity[CurrentCPU->ID] == false)
continue;
{
TempIndex++;
goto RetryAnotherThread;
}
CurrentCPU->CurrentThread = nextThread;
gnat_schedbg("[thd 0 -> end] Scheduling thread %d parent of %s->%d Procs %d",