summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/server_session.cpp
diff options
context:
space:
mode:
authorRodrigo Locatti <reinuseslisp@airmail.cc>2020-09-14 22:39:05 +0200
committerGitHub <noreply@github.com>2020-09-14 22:39:05 +0200
commit1a9774f824c3ae75e9344d897deec19ba871f059 (patch)
tree44638c8d178116c2d990bae4a9dfa7319f36cdaa /src/core/hle/kernel/server_session.cpp
parentMerge pull request #4636 from lioncash/kernel-hle (diff)
parentkernel: Remove all dependencies on the global system instance (diff)
downloadyuzu-1a9774f824c3ae75e9344d897deec19ba871f059.tar
yuzu-1a9774f824c3ae75e9344d897deec19ba871f059.tar.gz
yuzu-1a9774f824c3ae75e9344d897deec19ba871f059.tar.bz2
yuzu-1a9774f824c3ae75e9344d897deec19ba871f059.tar.lz
yuzu-1a9774f824c3ae75e9344d897deec19ba871f059.tar.xz
yuzu-1a9774f824c3ae75e9344d897deec19ba871f059.tar.zst
yuzu-1a9774f824c3ae75e9344d897deec19ba871f059.zip
Diffstat (limited to 'src/core/hle/kernel/server_session.cpp')
-rw-r--r--src/core/hle/kernel/server_session.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/server_session.cpp b/src/core/hle/kernel/server_session.cpp
index 7e6391c6c..8c19f2534 100644
--- a/src/core/hle/kernel/server_session.cpp
+++ b/src/core/hle/kernel/server_session.cpp
@@ -8,7 +8,6 @@
#include "common/assert.h"
#include "common/common_types.h"
#include "common/logging/log.h"
-#include "core/core.h"
#include "core/core_timing.h"
#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/client_port.h"
@@ -185,10 +184,11 @@ ResultCode ServerSession::CompleteSyncRequest() {
}
ResultCode ServerSession::HandleSyncRequest(std::shared_ptr<Thread> thread,
- Core::Memory::Memory& memory) {
+ Core::Memory::Memory& memory,
+ Core::Timing::CoreTiming& core_timing) {
const ResultCode result = QueueSyncRequest(std::move(thread), memory);
const auto delay = std::chrono::nanoseconds{kernel.IsMulticore() ? 0 : 20000};
- Core::System::GetInstance().CoreTiming().ScheduleEvent(delay, request_event, {});
+ core_timing.ScheduleEvent(delay, request_event, {});
return result;
}