kern: delete creation time field from KProcess

This commit is contained in:
Michael Scire 2023-02-21 13:51:56 -07:00 committed by SciresM
parent 25383db524
commit aad2be0a01
3 changed files with 11 additions and 1 deletions

View file

@ -198,7 +198,6 @@ namespace ams::kern {
/* Set misc fields. */
m_state = State_Created;
m_main_thread_stack_size = 0;
m_creation_time = KHardwareTimer::GetTick();
m_used_kernel_memory_size = 0;
m_ideal_core_id = 0;
m_flags = params.flags;
@ -209,6 +208,10 @@ namespace ams::kern {
m_is_application = (params.flags & ams::svc::CreateProcessFlag_IsApplication);
m_is_jit_debug = false;
#if defined(MESOSPHERE_ENABLE_PROCESS_CREATION_TIME)
m_creation_time = KHardwareTimer::GetTick();
#endif
/* Set thread fields. */
for (size_t i = 0; i < cpu::NumCores; i++) {
m_running_threads[i] = nullptr;