pm: fix when RTC_HIRES enabled pm procfs err

Signed-off-by: buxiasen <buxiasen@xiaomi.com>
This commit is contained in:
buxiasen 2024-05-04 19:25:13 +08:00 committed by Xiang Xiao
parent 6ef6d75840
commit c9170c3b0a
1 changed files with 4 additions and 0 deletions

View File

@ -95,6 +95,10 @@ void pm_initialize(void)
#endif
pm_set_governor(i, gov);
#if defined(CONFIG_PM_PROCFS)
clock_systime_timespec(&g_pmglobals.domain[i].start);
#endif
nxrmutex_init(&g_pmglobals.domain[i].lock);
#if CONFIG_PM_GOVERNOR_EXPLICIT_RELAX