kopia lustrzana https://github.com/espressif/esp-idf
fix(esp_hw_support): fix ipc_isr pause/resume order in sleep process
rodzic
624bcb4757
commit
55c5c2467d
|
@ -586,7 +586,6 @@ void sleep_smp_cpu_sleep_prepare(void)
|
|||
esp_ipc_isr_call((esp_ipc_isr_func_t)smp_core_do_retention, NULL);
|
||||
#else
|
||||
esp_ipc_isr_stall_other_cpu();
|
||||
esp_ipc_isr_stall_pause();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -601,7 +600,6 @@ void sleep_smp_cpu_wakeup_prepare(void)
|
|||
}
|
||||
atomic_store(&s_smp_retention_state[core_id], SMP_IDLE);
|
||||
#else
|
||||
esp_ipc_isr_stall_resume();
|
||||
esp_ipc_isr_release_other_cpu();
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -1244,8 +1244,8 @@ esp_err_t esp_light_sleep_start(void)
|
|||
sleep_smp_cpu_sleep_prepare();
|
||||
#else
|
||||
esp_ipc_isr_stall_other_cpu();
|
||||
esp_ipc_isr_stall_pause();
|
||||
#endif
|
||||
esp_ipc_isr_stall_pause();
|
||||
#endif
|
||||
|
||||
#if CONFIG_ESP_SLEEP_CACHE_SAFE_ASSERTION && CONFIG_PM_SLP_IRAM_OPT
|
||||
|
@ -1395,10 +1395,10 @@ esp_err_t esp_light_sleep_start(void)
|
|||
#endif
|
||||
|
||||
#if !CONFIG_FREERTOS_UNICORE
|
||||
esp_ipc_isr_stall_resume();
|
||||
#if CONFIG_PM_POWER_DOWN_CPU_IN_LIGHT_SLEEP && SOC_PM_CPU_RETENTION_BY_SW
|
||||
sleep_smp_cpu_wakeup_prepare();
|
||||
#else
|
||||
esp_ipc_isr_stall_resume();
|
||||
esp_ipc_isr_release_other_cpu();
|
||||
#endif
|
||||
#endif
|
||||
|
|
Ładowanie…
Reference in New Issue