1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-18 01:46:47 +00:00

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