boards: simplify the enable condition for up_perf_init

This commit is contained in:
raiden00pl 2023-10-02 17:00:18 +02:00 committed by Xiang Xiao
parent 917fa624b9
commit dbe10a0fc8
9 changed files with 9 additions and 9 deletions

View File

@ -51,7 +51,7 @@
void lpc17_40_boardinitialize(void)
{
#ifdef CONFIG_SCHED_IRQMONITOR
#ifdef CONFIG_ARCH_PERF_EVENTS
up_perf_init((void *)LPC17_40_CCLK);
#endif

View File

@ -47,7 +47,7 @@
void s32k1xx_board_initialize(void)
{
#ifdef CONFIG_SEGGER_SYSVIEW
#ifdef CONFIG_ARCH_PERF_EVENTS
up_perf_init((void *)RDDRONE_BMS772_RUN_SYSCLK_FREQUENCY);
#endif

View File

@ -45,7 +45,7 @@
void s32k1xx_board_initialize(void)
{
#ifdef CONFIG_SEGGER_SYSVIEW
#ifdef CONFIG_ARCH_PERF_EVENTS
up_perf_init((void *)S32K144EVB_RUN_SYSCLK_FREQUENCY);
#endif

View File

@ -45,7 +45,7 @@
void s32k1xx_board_initialize(void)
{
#ifdef CONFIG_SEGGER_SYSVIEW
#ifdef CONFIG_ARCH_PERF_EVENTS
up_perf_init((void *)S32K146EVB_RUN_SYSCLK_FREQUENCY);
#endif

View File

@ -45,7 +45,7 @@
void s32k1xx_board_initialize(void)
{
#ifdef CONFIG_SEGGER_SYSVIEW
#ifdef CONFIG_ARCH_PERF_EVENTS
up_perf_init((void *)S32K148EVB_RUN_SYSCLK_FREQUENCY);
#endif

View File

@ -45,7 +45,7 @@
void s32k1xx_board_initialize(void)
{
#ifdef CONFIG_SEGGER_SYSVIEW
#ifdef CONFIG_ARCH_PERF_EVENTS
up_perf_init((void *)UCANS32K146_RUN_SYSCLK_FREQUENCY);
#endif

View File

@ -47,7 +47,7 @@
void s32k3xx_board_initialize(void)
{
#ifdef CONFIG_SEGGER_SYSVIEW
#ifdef CONFIG_ARCH_PERF_EVENTS
up_perf_init((void *)MR_CANHUBK3_SYSCLK_FREQUENCY);
#endif

View File

@ -52,7 +52,7 @@
void esp32c3_board_initialize(void)
{
#ifdef CONFIG_SCHED_CRITMONITOR
#ifdef CONFIG_ARCH_PERF_EVENTS
up_perf_init(NULL);
#endif

View File

@ -51,7 +51,7 @@
void esp32c3_board_initialize(void)
{
#ifdef CONFIG_SCHED_CRITMONITOR
#ifdef CONFIG_ARCH_PERF_EVENTS
up_perf_init(NULL);
#endif