kern: finish SvcGetInfo

This commit is contained in:
Michael Scire 2020-07-24 05:44:52 -07:00 committed by SciresM
parent fd9b986938
commit 695b82b945
4 changed files with 66 additions and 4 deletions

View file

@ -232,7 +232,7 @@ namespace ams::kern {
const s64 prev_tick = this->last_context_switch_time;
const s64 cur_tick = KHardwareTimer::GetTick();
const s64 tick_diff = cur_tick - prev_tick;
cur_thread->AddCpuTime(tick_diff);
cur_thread->AddCpuTime(this->core_id, tick_diff);
if (cur_process != nullptr) {
cur_process->AddCpuTime(tick_diff);
}