boards: simplify the enable condition for up_perf_init
This commit is contained in:
parent
917fa624b9
commit
dbe10a0fc8
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -52,7 +52,7 @@
|
||||
|
||||
void esp32c3_board_initialize(void)
|
||||
{
|
||||
#ifdef CONFIG_SCHED_CRITMONITOR
|
||||
#ifdef CONFIG_ARCH_PERF_EVENTS
|
||||
up_perf_init(NULL);
|
||||
#endif
|
||||
|
||||
|
@ -51,7 +51,7 @@
|
||||
|
||||
void esp32c3_board_initialize(void)
|
||||
{
|
||||
#ifdef CONFIG_SCHED_CRITMONITOR
|
||||
#ifdef CONFIG_ARCH_PERF_EVENTS
|
||||
up_perf_init(NULL);
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user