Skip to content

Commit 141e628

Browse files
feat(freertos-smp): Enabled FreeRTOS Runtime stats gathering for Amazon SMP Kernel
1 parent 9a4341b commit 141e628

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

components/freertos/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ menu "FreeRTOS"
299299

300300
choice FREERTOS_RUN_TIME_COUNTER_TYPE
301301
prompt "configRUN_TIME_COUNTER_TYPE"
302-
depends on FREERTOS_GENERATE_RUN_TIME_STATS && !FREERTOS_SMP
302+
depends on FREERTOS_GENERATE_RUN_TIME_STATS
303303
default FREERTOS_RUN_TIME_COUNTER_TYPE_U32
304304
help
305305
Sets the data type used for the FreeRTOS run time stats. A larger data type can be used to reduce the

components/freertos/config/include/freertos/FreeRTOSConfig.h

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2023-2025 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -168,13 +168,11 @@
168168
#define configUSE_STATS_FORMATTING_FUNCTIONS 1 /* Used by vTaskList() */
169169
#endif /* CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS */
170170

171-
#if !CONFIG_FREERTOS_SMP
172-
#if CONFIG_FREERTOS_RUN_TIME_COUNTER_TYPE_U32
173-
#define configRUN_TIME_COUNTER_TYPE uint32_t
174-
#elif CONFIG_FREERTOS_RUN_TIME_COUNTER_TYPE_U64
175-
#define configRUN_TIME_COUNTER_TYPE uint64_t
176-
#endif /* CONFIG_FREERTOS_RUN_TIME_COUNTER_TYPE_U64 */
177-
#endif /* !CONFIG_FREERTOS_SMP */
171+
#if CONFIG_FREERTOS_RUN_TIME_COUNTER_TYPE_U32
172+
#define configRUN_TIME_COUNTER_TYPE uint32_t
173+
#elif CONFIG_FREERTOS_RUN_TIME_COUNTER_TYPE_U64
174+
#define configRUN_TIME_COUNTER_TYPE uint64_t
175+
#endif /* CONFIG_FREERTOS_RUN_TIME_COUNTER_TYPE_U64 */
178176

179177
/* -------------------- Co-routines ----------------------- */
180178

0 commit comments

Comments
 (0)