summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/svc.cpp
diff options
context:
space:
mode:
authorGravatar Subv2018-08-12 20:38:37 -0500
committerGravatar Subv2018-08-12 20:38:37 -0500
commita9877c8f65b3cefe12d8ec5da6d6acf4ea27923b (patch)
tree1f9da7896af7c3da393ee738aa7554d9ec1d8625 /src/core/hle/kernel/svc.cpp
parentMerge pull request #1029 from bunnei/fix-out-attrib (diff)
downloadyuzu-a9877c8f65b3cefe12d8ec5da6d6acf4ea27923b.tar.gz
yuzu-a9877c8f65b3cefe12d8ec5da6d6acf4ea27923b.tar.xz
yuzu-a9877c8f65b3cefe12d8ec5da6d6acf4ea27923b.zip
Kernel/SVC: Don't reschedule the current core when creating a new thread.
The current core may have nothing to do with the core where the new thread was scheduled to run. In case it's the same core, then the following PrepareReshedule call will take care of that.
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
-rw-r--r--src/core/hle/kernel/svc.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index 5db2db687..4ca481513 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -532,7 +532,6 @@ static ResultCode CreateThread(Handle* out_handle, VAddr entry_point, u64 arg, V
532 CASCADE_RESULT(thread->guest_handle, g_handle_table.Create(thread)); 532 CASCADE_RESULT(thread->guest_handle, g_handle_table.Create(thread));
533 *out_handle = thread->guest_handle; 533 *out_handle = thread->guest_handle;
534 534
535 Core::System::GetInstance().PrepareReschedule();
536 Core::System::GetInstance().CpuCore(thread->processor_id).PrepareReschedule(); 535 Core::System::GetInstance().CpuCore(thread->processor_id).PrepareReschedule();
537 536
538 LOG_TRACE(Kernel_SVC, 537 LOG_TRACE(Kernel_SVC,