pm: move pm_wakelock_global_init to the top

Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
ligd 2022-06-20 11:03:41 +08:00 committed by Xiang Xiao
parent 82713d9eac
commit 0ca0c017fd

View File

@ -76,6 +76,8 @@ void pm_initialize(void)
FAR const struct pm_governor_s *gov;
int i;
pm_wakelock_global_init();
/* Select governor */
for (i = 0; i < CONFIG_PM_NDOMAINS; i++)
@ -95,8 +97,6 @@ void pm_initialize(void)
g_pmglobals.domain[i].holder = INVALID_PROCESS_ID;
g_pmglobals.domain[i].count = 0;
}
pm_wakelock_global_init();
}
#endif /* CONFIG_PM */