diff options
author | bunnei <bunneidev@gmail.com> | 2020-02-12 16:10:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-12 16:10:00 +0100 |
commit | 2506f7b3a1bf3064427f0a4be4adeaab68bda669 (patch) | |
tree | a1e01a5df61f534f0b3cc17323bd3e78a653de03 | |
parent | Merge pull request #3376 from ReinUsesLisp/point-sprite (diff) | |
parent | kernel/thread: Remove trivial usages of the global system accessor (diff) | |
download | yuzu-2506f7b3a1bf3064427f0a4be4adeaab68bda669.tar yuzu-2506f7b3a1bf3064427f0a4be4adeaab68bda669.tar.gz yuzu-2506f7b3a1bf3064427f0a4be4adeaab68bda669.tar.bz2 yuzu-2506f7b3a1bf3064427f0a4be4adeaab68bda669.tar.lz yuzu-2506f7b3a1bf3064427f0a4be4adeaab68bda669.tar.xz yuzu-2506f7b3a1bf3064427f0a4be4adeaab68bda669.tar.zst yuzu-2506f7b3a1bf3064427f0a4be4adeaab68bda669.zip |
-rw-r--r-- | src/core/hle/kernel/thread.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index e965b5b04..ad464e03b 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp @@ -474,7 +474,7 @@ void Thread::AdjustSchedulingOnPriority(u32 old_priority) { if (GetSchedulingStatus() != ThreadSchedStatus::Runnable) { return; } - auto& scheduler = Core::System::GetInstance().GlobalScheduler(); + auto& scheduler = kernel.GlobalScheduler(); if (processor_id >= 0) { scheduler.Unschedule(old_priority, static_cast<u32>(processor_id), this); } @@ -506,7 +506,7 @@ void Thread::AdjustSchedulingOnPriority(u32 old_priority) { } void Thread::AdjustSchedulingOnAffinity(u64 old_affinity_mask, s32 old_core) { - auto& scheduler = Core::System::GetInstance().GlobalScheduler(); + auto& scheduler = kernel.GlobalScheduler(); if (GetSchedulingStatus() != ThreadSchedStatus::Runnable || current_priority >= THREADPRIO_COUNT) { return; |