diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-09-11 18:47:37 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-10-15 17:55:16 +0200 |
commit | e05a8c2385a68be6b1f6079c656fa46336546927 (patch) | |
tree | 39a6d0c1955c580f7db66a53fc5777cdc885e4b7 /src/core/hle/kernel/scheduler.cpp | |
parent | Scheduler: Implement Yield Count and Core migration on Thread Preemption. (diff) | |
download | yuzu-e05a8c2385a68be6b1f6079c656fa46336546927.tar yuzu-e05a8c2385a68be6b1f6079c656fa46336546927.tar.gz yuzu-e05a8c2385a68be6b1f6079c656fa46336546927.tar.bz2 yuzu-e05a8c2385a68be6b1f6079c656fa46336546927.tar.lz yuzu-e05a8c2385a68be6b1f6079c656fa46336546927.tar.xz yuzu-e05a8c2385a68be6b1f6079c656fa46336546927.tar.zst yuzu-e05a8c2385a68be6b1f6079c656fa46336546927.zip |
Diffstat (limited to 'src/core/hle/kernel/scheduler.cpp')
-rw-r--r-- | src/core/hle/kernel/scheduler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/scheduler.cpp b/src/core/hle/kernel/scheduler.cpp index 5581c43bf..60d936c9a 100644 --- a/src/core/hle/kernel/scheduler.cpp +++ b/src/core/hle/kernel/scheduler.cpp @@ -287,7 +287,7 @@ void GlobalScheduler::PreemptThreads() { if (current_thread != nullptr && current_thread->GetPriority() > priority) { for (auto& thread : suggested_queue[core_id]) { const s32 source_core = thread->GetProcessorID(); - if (thread->GetPriority() > priority) { + if (thread->GetPriority() < priority) { continue; } if (source_core >= 0) { |