diff options
author | FernandoS27 <fsahmkow27@gmail.com> | 2021-11-26 18:16:54 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-12-07 01:39:18 +0100 |
commit | 894ed14ebc0ca938f2f240f37a5d8f1eda4cd66f (patch) | |
tree | 5799322c8b0e78a60993452bf65dee380ed36ce1 /src/core/hle/kernel | |
parent | hle: kernel: fix scheduling ops from HLE host thread. (diff) | |
download | yuzu-894ed14ebc0ca938f2f240f37a5d8f1eda4cd66f.tar yuzu-894ed14ebc0ca938f2f240f37a5d8f1eda4cd66f.tar.gz yuzu-894ed14ebc0ca938f2f240f37a5d8f1eda4cd66f.tar.bz2 yuzu-894ed14ebc0ca938f2f240f37a5d8f1eda4cd66f.tar.lz yuzu-894ed14ebc0ca938f2f240f37a5d8f1eda4cd66f.tar.xz yuzu-894ed14ebc0ca938f2f240f37a5d8f1eda4cd66f.tar.zst yuzu-894ed14ebc0ca938f2f240f37a5d8f1eda4cd66f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/kernel.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index 1a47d4716..2e4e4cb1c 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp @@ -251,13 +251,11 @@ struct KernelCore::Impl { KScopedSchedulerLock lock(kernel); global_scheduler_context->PreemptThreads(); } - const auto time_interval = std::chrono::nanoseconds{ - Core::Timing::msToCycles(std::chrono::milliseconds(10))}; + const auto time_interval = std::chrono::nanoseconds{std::chrono::milliseconds(10)}; system.CoreTiming().ScheduleEvent(time_interval, preemption_event); }); - const auto time_interval = - std::chrono::nanoseconds{Core::Timing::msToCycles(std::chrono::milliseconds(10))}; + const auto time_interval = std::chrono::nanoseconds{std::chrono::milliseconds(10)}; system.CoreTiming().ScheduleEvent(time_interval, preemption_event); } |