mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-25 16:22:47 +01:00
hle: kernel k_scheduler: EnableScheduling: Remove redundant GetCurrentThreadPointer calls.
This commit is contained in:
parent
9a9e7dd78b
commit
257d3c9ecf
1 changed files with 5 additions and 3 deletions
|
@ -391,10 +391,12 @@ void KScheduler::EnableScheduling(KernelCore& kernel, u64 cores_needing_scheduli
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ASSERT(GetCurrentThreadPointer(kernel)->GetDisableDispatchCount() >= 1);
|
auto* current_thread = GetCurrentThreadPointer(kernel);
|
||||||
|
|
||||||
if (GetCurrentThreadPointer(kernel)->GetDisableDispatchCount() > 1) {
|
ASSERT(current_thread->GetDisableDispatchCount() >= 1);
|
||||||
GetCurrentThreadPointer(kernel)->EnableDispatch();
|
|
||||||
|
if (current_thread->GetDisableDispatchCount() > 1) {
|
||||||
|
current_thread->EnableDispatch();
|
||||||
} else {
|
} else {
|
||||||
RescheduleCores(kernel, cores_needing_scheduling);
|
RescheduleCores(kernel, cores_needing_scheduling);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue