mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-29 05:55:16 -04: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…
Add table
Add a link
Reference in a new issue