mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 20:31:14 +00:00
kern: fix scheduler update semantics in KLightLock::LockSlowPath
This commit is contained in:
parent
b5f72b9f20
commit
a28c60970f
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue