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

This commit is contained in:
bunnei committed 2021-12-06 16:39:18 -08:00
1 parent 6d2bf18df9
commit b5970145a5
1 file changed
+5
+5
View File
@@ -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();