summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorFernandoS27 <fsahmkow27@gmail.com>2021-11-26 18:15:43 +0100
committerbunnei <bunneidev@gmail.com>2021-12-07 01:39:17 +0100
commit3c2a451f47c54cb39870f8f106edbdd09b3a458d (patch)
tree9f93dafbc411267e1cbfffceb18f4190a8a6aa3b /src/core/hle/kernel
parenthle: kernel: Add a flag for indicating that the kernel is currently shutting down. (diff)
downloadyuzu-3c2a451f47c54cb39870f8f106edbdd09b3a458d.tar
yuzu-3c2a451f47c54cb39870f8f106edbdd09b3a458d.tar.gz
yuzu-3c2a451f47c54cb39870f8f106edbdd09b3a458d.tar.bz2
yuzu-3c2a451f47c54cb39870f8f106edbdd09b3a458d.tar.lz
yuzu-3c2a451f47c54cb39870f8f106edbdd09b3a458d.tar.xz
yuzu-3c2a451f47c54cb39870f8f106edbdd09b3a458d.tar.zst
yuzu-3c2a451f47c54cb39870f8f106edbdd09b3a458d.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/k_scheduler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/k_scheduler.cpp b/src/core/hle/kernel/k_scheduler.cpp
index 5423b187e..d3b1b2419 100644
--- a/src/core/hle/kernel/k_scheduler.cpp
+++ b/src/core/hle/kernel/k_scheduler.cpp
@@ -240,8 +240,8 @@ void KScheduler::OnThreadPriorityChanged(KernelCore& kernel, KThread* thread, s3
// If the thread is runnable, we want to change its priority in the queue.
if (thread->GetRawState() == ThreadState::Runnable) {
- GetPriorityQueue(kernel).ChangePriority(
- old_priority, thread == kernel.CurrentScheduler()->GetCurrentThread(), thread);
+ GetPriorityQueue(kernel).ChangePriority(old_priority,
+ thread == kernel.GetCurrentEmuThread(), thread);
IncrementScheduledCount(thread);
SetSchedulerUpdateNeeded(kernel);
}
@@ -360,7 +360,7 @@ void KScheduler::RotateScheduledQueue(s32 cpu_core_id, s32 priority) {
}
bool KScheduler::CanSchedule(KernelCore& kernel) {
- return kernel.CurrentScheduler()->GetCurrentThread()->GetDisableDispatchCount() <= 1;
+ return kernel.GetCurrentEmuThread()->GetDisableDispatchCount() <= 1;
}
bool KScheduler::IsSchedulerUpdateNeeded(const KernelCore& kernel) {