kern: unconditionally set thread state when appropriate
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user