diff --git a/components/freertos/FreeRTOS-Kernel/portable/port_systick.c b/components/freertos/FreeRTOS-Kernel/portable/port_systick.c index 75889a8a5e..adfd69b8a7 100644 --- a/components/freertos/FreeRTOS-Kernel/portable/port_systick.c +++ b/components/freertos/FreeRTOS-Kernel/portable/port_systick.c @@ -19,6 +19,10 @@ #include "hal/systimer_ll.h" #endif +#ifdef CONFIG_PM_TRACE +#include "esp_private/pm_trace.h" +#endif //CONFIG_PM_TRACE + BaseType_t xPortSysTickHandler(void); #ifdef CONFIG_FREERTOS_SYSTICK_USES_CCOUNT diff --git a/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c b/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c index 4bfba5ab0e..8a3ca7f606 100644 --- a/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c +++ b/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c @@ -47,7 +47,6 @@ #include "riscv/riscv_interrupts.h" #include "riscv/interrupt.h" #include "esp_private/crosscore_int.h" -#include "esp_private/pm_trace.h" #include "esp_attr.h" #include "esp_system.h" #include "esp_intr_alloc.h"