From 2ad9927a88d1ddc636024e2c7268f681c25e3e44 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Fri, 24 Jul 2020 18:21:35 -0700 Subject: [PATCH] kern: Fix bug in thread core migration --- .../libmesosphere/include/mesosphere/kern_k_priority_queue.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libmesosphere/include/mesosphere/kern_k_priority_queue.hpp b/libraries/libmesosphere/include/mesosphere/kern_k_priority_queue.hpp index 033c59373..a9ad07006 100644 --- a/libraries/libmesosphere/include/mesosphere/kern_k_priority_queue.hpp +++ b/libraries/libmesosphere/include/mesosphere/kern_k_priority_queue.hpp @@ -400,7 +400,7 @@ namespace ams::kern { /* Remove from the suggested queue and add to the scheduled queue for the new core. */ if (new_core >= 0) { - this->suggested_queue.Remove(priority, prev_core, member); + this->suggested_queue.Remove(priority, new_core, member); if (to_front) { this->scheduled_queue.PushFront(priority, new_core, member); } else {