Kernel: Corrections to TimeManager, Scheduler and Mutex.

This commit is contained in:
Fernando Sahmkow 2020-03-08 16:20:05 -04:00
parent 6515c6e8c6
commit 9e9c287f8b
3 changed files with 5 additions and 5 deletions

View file

@ -93,7 +93,7 @@ u32 GlobalScheduler::SelectThreads() {
iter++;
s32 suggested_core_id = suggested->GetProcessorID();
Thread* top_thread =
suggested_core_id > 0 ? top_threads[suggested_core_id] : nullptr;
suggested_core_id >= 0 ? top_threads[suggested_core_id] : nullptr;
if (top_thread != suggested) {
if (top_thread != nullptr &&
top_thread->GetPriority() < THREADPRIO_MAX_CORE_MIGRATION) {