Skip to content

Commit eed68e1

Browse files
committed
cache: skip disabling scheduler
Enabling or disable cache does not require locking the scheduler. Let it run as is only using general locking mechanisms. Signed-off-by: Sylvio Alves <[email protected]>
1 parent ba0265e commit eed68e1

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

zephyr/port/host_flash/cache_utils.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,6 @@ void spi_flash_op_unlock(void)
7171

7272
void IRAM_ATTR spi_flash_disable_interrupts_caches_and_other_cpu(void)
7373
{
74-
#ifdef CONFIG_MULTITHREADING
75-
if(!k_is_in_isr()) {
76-
k_sched_lock();
77-
}
78-
#endif
79-
8074
s_intr_saved_state = irq_lock();
8175
#if !defined(CONFIG_SOC_SERIES_ESP32C2) && !defined(CONFIG_SOC_SERIES_ESP32C3) && \
8276
!defined(CONFIG_SOC_SERIES_ESP32C6)
@@ -117,13 +111,6 @@ void IRAM_ATTR spi_flash_enable_interrupts_caches_and_other_cpu(void)
117111
esp_intr_noniram_enable();
118112
#endif
119113
irq_unlock(s_intr_saved_state);
120-
121-
#ifdef CONFIG_MULTITHREADING
122-
if(!k_is_in_isr()) {
123-
k_sched_unlock();
124-
}
125-
#endif
126-
127114
}
128115

129116
void IRAM_ATTR spi_flash_enable_cache(uint32_t cpuid)

0 commit comments

Comments
 (0)