forked from espressif/esp-idf
Merge branch 'bugfix/idle_task_skipped_light_sleep_backport_v4.1' into 'release/v4.1'
pm_impl: fix neither enter light sleep nor enter waiti state in idle task(backport v4.1) See merge request espressif/esp-idf!17850
This commit is contained in:
@@ -475,8 +475,8 @@ void esp_pm_impl_waiti(void)
|
||||
* the lock so that vApplicationSleep can attempt to enter light sleep.
|
||||
*/
|
||||
esp_pm_impl_idle_hook();
|
||||
s_skipped_light_sleep[core_id] = false;
|
||||
}
|
||||
s_skipped_light_sleep[core_id] = true;
|
||||
#else
|
||||
asm("waiti 0");
|
||||
#endif // CONFIG_FREERTOS_USE_TICKLESS_IDLE
|
||||
|
@@ -457,8 +457,8 @@ void esp_pm_impl_waiti(void)
|
||||
* the lock so that vApplicationSleep can attempt to enter light sleep.
|
||||
*/
|
||||
esp_pm_impl_idle_hook();
|
||||
s_skipped_light_sleep[core_id] = false;
|
||||
}
|
||||
s_skipped_light_sleep[core_id] = true;
|
||||
#else
|
||||
asm("waiti 0");
|
||||
#endif // CONFIG_FREERTOS_USE_TICKLESS_IDLE
|
||||
|
Reference in New Issue
Block a user