From 572aef4841b3ac04b1dd5ef0c6bd3598473c85b1 Mon Sep 17 00:00:00 2001 From: Max Filippov Date: Fri, 6 Mar 2020 11:04:57 -0800 Subject: [PATCH] xtensa port: add portCONFIGURE_TIMER_FOR_RUN_TIME_STATS to portmacro.h Add port-specific definition of portCONFIGURE_TIMER_FOR_RUN_TIME_STATS. For ccount-based timer nothing needs to be done. Signed-off-by: Max Filippov --- portable/XCC/Xtensa/portmacro.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/portable/XCC/Xtensa/portmacro.h b/portable/XCC/Xtensa/portmacro.h index 90aa6810e52..d5b2c673044 100644 --- a/portable/XCC/Xtensa/portmacro.h +++ b/portable/XCC/Xtensa/portmacro.h @@ -202,6 +202,9 @@ BaseType_t xPortRaisePrivilege( void ); /* Fine resolution time */ #define portGET_RUN_TIME_COUNTER_VALUE() xthal_get_ccount() +/* No need to do anything for the ccount timer. */ +#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() do {} while (0) + /* Kernel utilities. */ void vPortYield( void ); void _frxt_setup_switch( void );