mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
27f5c90e2e
IDF FreeRTOS uses vTaskSuspendAll()/xTaskResumeAll() to stop preemption on a particular core. However, those functions behave differently in FreeRTOS SMP. This commit replaces all calls of vTaskSuspendAll()/xTaskResumeAll() with vTaskPreemptionDisable()/vTaskPreemptionEnable() when compiling with SMP FreeRTOS.