summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-08-07 08:16:36 +0200
committerbunnei <bunneidev@gmail.com>2021-12-07 01:39:16 +0100
commit629f9274ac88722d828e3484f73084376c2811ba (patch)
treee98e30e878ab80b370b42fcacfc4a737227f2a06 /src/core/hle/kernel
parentcore: hle: kernel: k_scheduler: Improve ScheduleImpl. (diff)
downloadyuzu-629f9274ac88722d828e3484f73084376c2811ba.tar
yuzu-629f9274ac88722d828e3484f73084376c2811ba.tar.gz
yuzu-629f9274ac88722d828e3484f73084376c2811ba.tar.bz2
yuzu-629f9274ac88722d828e3484f73084376c2811ba.tar.lz
yuzu-629f9274ac88722d828e3484f73084376c2811ba.tar.xz
yuzu-629f9274ac88722d828e3484f73084376c2811ba.tar.zst
yuzu-629f9274ac88722d828e3484f73084376c2811ba.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/k_scheduler.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/core/hle/kernel/k_scheduler.cpp b/src/core/hle/kernel/k_scheduler.cpp
index e523c4923..f5236dfea 100644
--- a/src/core/hle/kernel/k_scheduler.cpp
+++ b/src/core/hle/kernel/k_scheduler.cpp
@@ -699,11 +699,6 @@ void KScheduler::Reload(KThread* thread) {
if (thread) {
ASSERT_MSG(thread->GetState() == ThreadState::Runnable, "Thread must be runnable.");
- auto* const thread_owner_process = thread->GetOwnerProcess();
- if (thread_owner_process != nullptr) {
- system.Kernel().MakeCurrentProcess(thread_owner_process);
- }
-
Core::ARM_Interface& cpu_core = system.ArmInterface(core_id);
cpu_core.LoadContext(thread->GetContext32());
cpu_core.LoadContext(thread->GetContext64());