diff options
| author | 2020-03-08 16:20:05 -0400 | |
|---|---|---|
| committer | 2020-06-27 11:35:40 -0400 | |
| commit | 9e9c287f8b24ce9a932490cc35b3d0b5f58bb7a3 (patch) | |
| tree | e977aa6c71954d9a147a20c190a425df23851085 /src/core/hle/kernel/scheduler.cpp | |
| parent | Kernel: Fixes, corrections and asserts to scheduler and different svcs. (diff) | |
| download | yuzu-9e9c287f8b24ce9a932490cc35b3d0b5f58bb7a3.tar.gz yuzu-9e9c287f8b24ce9a932490cc35b3d0b5f58bb7a3.tar.xz yuzu-9e9c287f8b24ce9a932490cc35b3d0b5f58bb7a3.zip | |
Kernel: Corrections to TimeManager, Scheduler and Mutex.
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 5322f0aae..98fbb8fe5 100644 --- a/src/core/hle/kernel/scheduler.cpp +++ b/src/core/hle/kernel/scheduler.cpp | |||
| @@ -93,7 +93,7 @@ u32 GlobalScheduler::SelectThreads() { | |||
| 93 | iter++; | 93 | iter++; |
| 94 | s32 suggested_core_id = suggested->GetProcessorID(); | 94 | s32 suggested_core_id = suggested->GetProcessorID(); |
| 95 | Thread* top_thread = | 95 | Thread* top_thread = |
| 96 | suggested_core_id > 0 ? top_threads[suggested_core_id] : nullptr; | 96 | suggested_core_id >= 0 ? top_threads[suggested_core_id] : nullptr; |
| 97 | if (top_thread != suggested) { | 97 | if (top_thread != suggested) { |
| 98 | if (top_thread != nullptr && | 98 | if (top_thread != nullptr && |
| 99 | top_thread->GetPriority() < THREADPRIO_MAX_CORE_MIGRATION) { | 99 | top_thread->GetPriority() < THREADPRIO_MAX_CORE_MIGRATION) { |