From ca1e8810e1aa5419e70f721a90cb1e8688e6e4a1 Mon Sep 17 00:00:00 2001 From: wuzhenghui Date: Tue, 12 Nov 2024 21:21:17 +0800 Subject: [PATCH] fix(esp_pm): fix missed ccompare update when another core is already in do_switch --- components/esp_pm/pm_impl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/esp_pm/pm_impl.c b/components/esp_pm/pm_impl.c index f58f79729c..65898ac083 100644 --- a/components/esp_pm/pm_impl.c +++ b/components/esp_pm/pm_impl.c @@ -612,6 +612,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