diff --git a/libraries/libmesosphere/source/kern_k_scheduler.cpp b/libraries/libmesosphere/source/kern_k_scheduler.cpp index a4adf140b..0a7287129 100644 --- a/libraries/libmesosphere/source/kern_k_scheduler.cpp +++ b/libraries/libmesosphere/source/kern_k_scheduler.cpp @@ -282,7 +282,7 @@ namespace ams::kern { /* Atomically clear the previous thread if it's our target. */ KThread *compare = thread; - prev_thread.compare_exchange_weak(compare, nullptr); + prev_thread.compare_exchange_strong(compare, nullptr); } }