diff options
author | Liam <byteslice@airmail.cc> | 2022-06-26 18:52:16 -0400 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-07-14 22:47:18 -0400 |
commit | 0624c880bd5af45ae9095465e079fa55458515f6 (patch) | |
tree | a8b9f3adf516af30cad021fc32f8669426946cd5 /src/core/hle/kernel/svc.cpp | |
parent | 53fb4a78a3ab73b4233464b74be5fcf53b0424d0 (diff) |
kernel: use KScheduler from mesosphere
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
-rw-r--r-- | src/core/hle/kernel/svc.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 8655506b07..27e5a805db 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp @@ -887,7 +887,7 @@ static Result GetInfo(Core::System& system, u64* result, u64 info_id, Handle han const auto* const current_thread = GetCurrentThreadPointer(system.Kernel()); const bool same_thread = current_thread == thread.GetPointerUnsafe(); - const u64 prev_ctx_ticks = scheduler.GetLastContextSwitchTicks(); + const u64 prev_ctx_ticks = scheduler.GetLastContextSwitchTime(); u64 out_ticks = 0; if (same_thread && info_sub_id == 0xFFFFFFFFFFFFFFFF) { const u64 thread_ticks = current_thread->GetCpuTime(); @@ -3026,11 +3026,6 @@ void Call(Core::System& system, u32 immediate) { } kernel.ExitSVCProfile(); - - if (!thread->IsCallingSvc()) { - auto* host_context = thread->GetHostContext().get(); - host_context->Rewind(); - } } } // namespace Kernel::Svc |