summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-05-06 05:54:43 +0200
committerbunnei <bunneidev@gmail.com>2018-05-11 01:34:52 +0200
commit8aa5d25f826c8969a1e9938d8c8e12fa6df8be82 (patch)
tree5e0832f4382787a889d3f0ed1ec75175a6ac8071 /src/core/hle/kernel
parentsvc: Implement GetThreadCoreMask and SetThreadCoreMask. (diff)
downloadyuzu-8aa5d25f826c8969a1e9938d8c8e12fa6df8be82.tar
yuzu-8aa5d25f826c8969a1e9938d8c8e12fa6df8be82.tar.gz
yuzu-8aa5d25f826c8969a1e9938d8c8e12fa6df8be82.tar.bz2
yuzu-8aa5d25f826c8969a1e9938d8c8e12fa6df8be82.tar.lz
yuzu-8aa5d25f826c8969a1e9938d8c8e12fa6df8be82.tar.xz
yuzu-8aa5d25f826c8969a1e9938d8c8e12fa6df8be82.tar.zst
yuzu-8aa5d25f826c8969a1e9938d8c8e12fa6df8be82.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/svc.cpp4
-rw-r--r--src/core/hle/kernel/thread.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index 9050ff3de..89c3e240a 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -625,7 +625,7 @@ static ResultCode WaitProcessWideKeyAtomic(VAddr mutex_addr, VAddr condition_var
// Note: Deliberately don't attempt to inherit the lock owner's priority.
- Core::System::GetInstance().PrepareReschedule();
+ Core::System::GetInstance().CpuCore(current_thread->processor_id).PrepareReschedule();
return RESULT_SUCCESS;
}
@@ -678,7 +678,7 @@ static ResultCode SignalProcessWideKey(VAddr condition_variable_addr, s32 target
owner->AddMutexWaiter(thread);
- Core::System::GetInstance().PrepareReschedule();
+ Core::System::GetInstance().CpuCore(thread->processor_id).PrepareReschedule();
}
++processed;
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index c370776e8..31cf1551d 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -189,7 +189,7 @@ void Thread::ResumeFromWait() {
status = THREADSTATUS_READY;
scheduler->ScheduleThread(this, current_priority);
- Core::System::GetInstance().PrepareReschedule();
+ Core::System::GetInstance().CpuCore(processor_id).PrepareReschedule();
}
/**