summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-11-28 09:40:50 +0100
committerbunnei <bunneidev@gmail.com>2021-12-07 01:39:18 +0100
commita2384a18fad1d7541c0e11b3c6d762aa46cd1b15 (patch)
treeb0dfbd934384335eb8011fde898b663658c40b6e /src/core/hle
parenthle: kernel: k_thread: Rename sleeping_queue -> wait_queue. (diff)
downloadyuzu-a2384a18fad1d7541c0e11b3c6d762aa46cd1b15.tar
yuzu-a2384a18fad1d7541c0e11b3c6d762aa46cd1b15.tar.gz
yuzu-a2384a18fad1d7541c0e11b3c6d762aa46cd1b15.tar.bz2
yuzu-a2384a18fad1d7541c0e11b3c6d762aa46cd1b15.tar.lz
yuzu-a2384a18fad1d7541c0e11b3c6d762aa46cd1b15.tar.xz
yuzu-a2384a18fad1d7541c0e11b3c6d762aa46cd1b15.tar.zst
yuzu-a2384a18fad1d7541c0e11b3c6d762aa46cd1b15.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/k_thread.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/hle/kernel/k_thread.cpp b/src/core/hle/kernel/k_thread.cpp
index 245437387..03175e5c2 100644
--- a/src/core/hle/kernel/k_thread.cpp
+++ b/src/core/hle/kernel/k_thread.cpp
@@ -1096,6 +1096,11 @@ KScopedDisableDispatch::~KScopedDisableDispatch() {
return;
}
+ // Skip the reschedule if single-core, as dispatch tracking is disabled here.
+ if (!Settings::values.use_multi_core.GetValue()) {
+ return;
+ }
+
if (GetCurrentThread(kernel).GetDisableDispatchCount() <= 1) {
auto scheduler = kernel.CurrentScheduler();