summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-01-26 19:23:46 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-01-26 19:23:46 +0100
commita1630ab53e70420d5fa69a5d9454b2a5e2e499e3 (patch)
tree387dcb59858e800d3ea2c47e131664ac9dd41516 /src
parentCore: Refactor CpuCoreManager to CpuManager and Cpu to Core Manager. (diff)
downloadyuzu-a1630ab53e70420d5fa69a5d9454b2a5e2e499e3.tar
yuzu-a1630ab53e70420d5fa69a5d9454b2a5e2e499e3.tar.gz
yuzu-a1630ab53e70420d5fa69a5d9454b2a5e2e499e3.tar.bz2
yuzu-a1630ab53e70420d5fa69a5d9454b2a5e2e499e3.tar.lz
yuzu-a1630ab53e70420d5fa69a5d9454b2a5e2e499e3.tar.xz
yuzu-a1630ab53e70420d5fa69a5d9454b2a5e2e499e3.tar.zst
yuzu-a1630ab53e70420d5fa69a5d9454b2a5e2e499e3.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/kernel/thread.cpp2
-rw-r--r--src/core/hle/kernel/wait_object.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index 278e46bad..e965b5b04 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -355,7 +355,7 @@ void Thread::SetActivity(ThreadActivity value) {
// Set status if not waiting
if (status == ThreadStatus::Ready || status == ThreadStatus::Running) {
SetStatus(ThreadStatus::Paused);
- Core::System::GetInstance().PrepareReschedule(processor_id);
+ kernel.PrepareReschedule(processor_id);
}
} else if (status == ThreadStatus::Paused) {
// Ready to reschedule
diff --git a/src/core/hle/kernel/wait_object.cpp b/src/core/hle/kernel/wait_object.cpp
index aa72889df..a0c806e8f 100644
--- a/src/core/hle/kernel/wait_object.cpp
+++ b/src/core/hle/kernel/wait_object.cpp
@@ -95,7 +95,7 @@ void WaitObject::WakeupWaitingThread(std::shared_ptr<Thread> thread) {
}
if (resume) {
thread->ResumeFromWait();
- Core::System::GetInstance().PrepareReschedule(thread->GetProcessorID());
+ kernel.PrepareReschedule(thread->GetProcessorID());
}
}