fix(esp_pm): fix missed ccompare update when another core is already in do_switch

This commit is contained in:
wuzhenghui 2024-11-12 21:21:17 +08:00
parent 356e7b6954
commit 78362aff04
No known key found for this signature in database
GPG Key ID: 3EFEDECDEBA39BB9

View File

@ -626,6 +626,7 @@ static void IRAM_ATTR do_switch(pm_mode_t new_mode)
}
#ifdef CONFIG_FREERTOS_SYSTICK_USES_CCOUNT
if (s_need_update_ccompare[core_id]) {
update_ccompare();
s_need_update_ccompare[core_id] = false;
}
#endif