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

master
bunnei 2021-11-28 00:40:50 +07:00
parent 42697527ba
commit a2384a18fa
1 changed files with 5 additions and 0 deletions

@ -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();