kern: unconditionally set thread state when appropriate

This commit is contained in:
Michael Scire authored and SciresM committed 2021-04-11 03:42:16 -07:00
1 parent 3356eddcba
commit ec1d9c4c49
3 files changed
+15 -32

No files matched your search

@@ -218,9 +218,7 @@ namespace ams::kern {
KThread *task_thread = Kernel::GetInterruptTaskManager().GetThread();
{
KScopedSchedulerLock sl;
if (AMS_LIKELY(task_thread->GetState() == KThread::ThreadState_Waiting)) {
task_thread->SetState(KThread::ThreadState_Runnable);
}
task_thread->SetState(KThread::ThreadState_Runnable);
}
}