mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-16 16:14:25 -04:00
kern: finish SvcGetInfo
This commit is contained in:
parent
fd9b986938
commit
695b82b945
4 changed files with 66 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue