diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-04-02 15:22:53 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-10-15 17:55:12 +0200 |
commit | fcc6b34fff3c9322a35e6457a699e70585a7e014 (patch) | |
tree | 7fbd96994170ff2707f65e42dc6a4832c6531d07 /src/core/hle/kernel/address_arbiter.cpp | |
parent | Comment and reorganize the scheduler (diff) | |
download | yuzu-fcc6b34fff3c9322a35e6457a699e70585a7e014.tar yuzu-fcc6b34fff3c9322a35e6457a699e70585a7e014.tar.gz yuzu-fcc6b34fff3c9322a35e6457a699e70585a7e014.tar.bz2 yuzu-fcc6b34fff3c9322a35e6457a699e70585a7e014.tar.lz yuzu-fcc6b34fff3c9322a35e6457a699e70585a7e014.tar.xz yuzu-fcc6b34fff3c9322a35e6457a699e70585a7e014.tar.zst yuzu-fcc6b34fff3c9322a35e6457a699e70585a7e014.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/address_arbiter.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/hle/kernel/address_arbiter.cpp b/src/core/hle/kernel/address_arbiter.cpp index 77f7bb451..c66cd16ef 100644 --- a/src/core/hle/kernel/address_arbiter.cpp +++ b/src/core/hle/kernel/address_arbiter.cpp @@ -37,8 +37,7 @@ void WakeThreads(const std::vector<SharedPtr<Thread>>& waiting_threads, s32 num_ waiting_threads[i]->SetWaitSynchronizationResult(RESULT_SUCCESS); waiting_threads[i]->SetArbiterWaitAddress(0); waiting_threads[i]->ResumeFromWait(); - if (waiting_threads[i]->GetProcessorID() >= 0) - system.CpuCore(waiting_threads[i]->GetProcessorID()).PrepareReschedule(); + system.PrepareReschedule(waiting_threads[i]->GetProcessorID()); } } } // Anonymous namespace @@ -173,7 +172,7 @@ ResultCode AddressArbiter::WaitForAddressImpl(VAddr address, s64 timeout) { current_thread->WakeAfterDelay(timeout); - system.CpuCore(current_thread->GetProcessorID()).PrepareReschedule(); + system.PrepareReschedule(current_thread->GetProcessorID()); return RESULT_TIMEOUT; } |