Skip to content

Commit 48e7e06

Browse files
author
Jiang Jiang Jian
committed
Merge branch 'fix/make_deepsleep_gpio_wakeup_usable_for_pd_top_lightsleep_v6.0' into 'release/v6.0'
fix(esp_hw_support): fix different cache writeback cost make sleep time compensation failed (v6.0) See merge request espressif/esp-idf!45334
2 parents c530fad + 8a914c6 commit 48e7e06

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

components/esp_hw_support/sleep_modes.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,18 +1231,6 @@ static esp_err_t SLEEP_FN_ATTR esp_sleep_start(uint32_t sleep_flags, uint32_t cl
12311231
if (!deep_sleep) {
12321232
if (result == ESP_OK) {
12331233
s_config.ccount_ticks_record = esp_cpu_get_cycle_count();
1234-
#if !CONFIG_PM_SLP_IRAM_OPT && !(CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32P4)
1235-
#if CONFIG_SPIRAM
1236-
// TODO: PM-651
1237-
Cache_WriteBack_All();
1238-
#endif
1239-
/* When the IRAM optimization for the sleep flow is disabled, all
1240-
* cache contents are forcibly invalidated before exiting the sleep
1241-
* flow. This ensures that the code execution time of sleep exit
1242-
* flow remains consistent, allowing the use of ccount to
1243-
* dynamically calculate the sleep adjustment time. */
1244-
cache_ll_invalidate_all(CACHE_LL_LEVEL_ALL, CACHE_TYPE_ALL, CACHE_LL_ID_ALL);
1245-
#endif
12461234
}
12471235
misc_modules_wake_prepare(sleep_flags);
12481236
}

0 commit comments

Comments
 (0)