Ver Fonte

hle: kernel: k_thread: Skip reschedule on DisableDispatch with SC.

bunnei há 4 anos atrás
pai
commit
a2384a18fa
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      src/core/hle/kernel/k_thread.cpp

+ 5 - 0
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();