summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/svc.cpp
diff options
context:
space:
mode:
authorGravatar Morph2022-07-25 12:00:31 -0400
committerGravatar GitHub2022-07-25 12:00:31 -0400
commit591d1f1b09d2af6e432d4fb27af3321919758c0c (patch)
tree5b0efec541b5db56b7d32e6c90f1b2587c71611d /src/core/hle/kernel/svc.cpp
parentMerge pull request #8484 from german77/irs_release (diff)
parentkernel: Ensure all uses of disable_count are balanced (diff)
downloadyuzu-591d1f1b09d2af6e432d4fb27af3321919758c0c.tar.gz
yuzu-591d1f1b09d2af6e432d4fb27af3321919758c0c.tar.xz
yuzu-591d1f1b09d2af6e432d4fb27af3321919758c0c.zip
Merge pull request #8549 from liamwhite/kscheduler-sc
kernel: use KScheduler from Mesosphere
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
-rw-r--r--src/core/hle/kernel/svc.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index 8655506b0..27e5a805d 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
887 const auto* const current_thread = GetCurrentThreadPointer(system.Kernel()); 887 const auto* const current_thread = GetCurrentThreadPointer(system.Kernel());
888 const bool same_thread = current_thread == thread.GetPointerUnsafe(); 888 const bool same_thread = current_thread == thread.GetPointerUnsafe();
889 889
890 const u64 prev_ctx_ticks = scheduler.GetLastContextSwitchTicks(); 890 const u64 prev_ctx_ticks = scheduler.GetLastContextSwitchTime();
891 u64 out_ticks = 0; 891 u64 out_ticks = 0;
892 if (same_thread && info_sub_id == 0xFFFFFFFFFFFFFFFF) { 892 if (same_thread && info_sub_id == 0xFFFFFFFFFFFFFFFF) {
893 const u64 thread_ticks = current_thread->GetCpuTime(); 893 const u64 thread_ticks = current_thread->GetCpuTime();
@@ -3026,11 +3026,6 @@ void Call(Core::System& system, u32 immediate) {
3026 } 3026 }
3027 3027
3028 kernel.ExitSVCProfile(); 3028 kernel.ExitSVCProfile();
3029
3030 if (!thread->IsCallingSvc()) {
3031 auto* host_context = thread->GetHostContext().get();
3032 host_context->Rewind();
3033 }
3034} 3029}
3035 3030
3036} // namespace Kernel::Svc 3031} // namespace Kernel::Svc