From a28c60970f5cfc661429300dc71255b068b1fbc5 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Thu, 28 Jan 2021 17:47:26 -0800 Subject: [PATCH] kern: fix scheduler update semantics in KLightLock::LockSlowPath --- libraries/libmesosphere/source/kern_k_light_lock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libmesosphere/source/kern_k_light_lock.cpp b/libraries/libmesosphere/source/kern_k_light_lock.cpp index d7c423092..06f73ea5b 100644 --- a/libraries/libmesosphere/source/kern_k_light_lock.cpp +++ b/libraries/libmesosphere/source/kern_k_light_lock.cpp @@ -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(); } } }