kern: fix scheduler update semantics in KLightLock::LockSlowPath

This commit is contained in:
Michael Scire 2021-01-28 17:47:26 -08:00
parent b5f72b9f20
commit a28c60970f

View file

@ -43,7 +43,6 @@ namespace ams::kern {
if (owner_thread->IsSuspended()) { if (owner_thread->IsSuspended()) {
owner_thread->ContinueIfHasKernelWaiters(); owner_thread->ContinueIfHasKernelWaiters();
KScheduler::SetSchedulerUpdateNeeded();
} }
} }
@ -53,6 +52,7 @@ namespace ams::kern {
KThread *owner_thread = cur_thread->GetLockOwner(); KThread *owner_thread = cur_thread->GetLockOwner();
if (AMS_UNLIKELY(owner_thread)) { if (AMS_UNLIKELY(owner_thread)) {
owner_thread->RemoveWaiter(cur_thread); owner_thread->RemoveWaiter(cur_thread);
KScheduler::SetSchedulerUpdateNeeded();
} }
} }
} }