diff --git a/arch/arm/src/stm32/stm32_start.c b/arch/arm/src/stm32/stm32_start.c index 1bfefbaf1e..08b7d21f09 100644 --- a/arch/arm/src/stm32/stm32_start.c +++ b/arch/arm/src/stm32/stm32_start.c @@ -157,6 +157,10 @@ void __start(void) showprogress('C'); +#ifdef CONFIG_SCHED_IRQMONITOR + up_perf_init((void *)STM32_SYSCLK_FREQUENCY); +#endif + #ifdef CONFIG_ARMV7M_ITMSYSLOG /* Perform ARMv7-M ITM SYSLOG initialization */ diff --git a/arch/arm/src/stm32f0l0g0/stm32_start.c b/arch/arm/src/stm32f0l0g0/stm32_start.c index 7cf308588f..f17b9867c1 100644 --- a/arch/arm/src/stm32f0l0g0/stm32_start.c +++ b/arch/arm/src/stm32f0l0g0/stm32_start.c @@ -115,6 +115,10 @@ void __start(void) showprogress('C'); +#ifdef CONFIG_SCHED_IRQMONITOR + up_perf_init((void *)STM32_SYSCLK_FREQUENCY); +#endif + /* Perform early serial initialization */ #ifdef USE_EARLYSERIALINIT diff --git a/arch/arm/src/stm32f7/stm32_start.c b/arch/arm/src/stm32f7/stm32_start.c index d6a591d1b7..d3ea80f6fb 100644 --- a/arch/arm/src/stm32f7/stm32_start.c +++ b/arch/arm/src/stm32f7/stm32_start.c @@ -245,6 +245,10 @@ void __start(void) up_enable_dcache(); showprogress('C'); +#ifdef CONFIG_SCHED_IRQMONITOR + up_perf_init((void *)STM32_SYSCLK_FREQUENCY); +#endif + #ifdef CONFIG_ARMV7M_ITMSYSLOG /* Perform ARMv7-M ITM SYSLOG initialization */ diff --git a/arch/arm/src/stm32h7/stm32_start.c b/arch/arm/src/stm32h7/stm32_start.c index 4797117280..bdd64dde1a 100644 --- a/arch/arm/src/stm32h7/stm32_start.c +++ b/arch/arm/src/stm32h7/stm32_start.c @@ -246,6 +246,10 @@ void __start(void) up_enable_dcache(); showprogress('C'); +#ifdef CONFIG_SCHED_IRQMONITOR + up_perf_init((void *)STM32_SYSCLK_FREQUENCY); +#endif + /* Perform early serial initialization */ #ifdef USE_EARLYSERIALINIT diff --git a/arch/arm/src/stm32l4/stm32l4_start.c b/arch/arm/src/stm32l4/stm32l4_start.c index 5fbb65baf0..b6c22f66fb 100644 --- a/arch/arm/src/stm32l4/stm32l4_start.c +++ b/arch/arm/src/stm32l4/stm32l4_start.c @@ -179,6 +179,10 @@ void __start(void) showprogress('C'); +#ifdef CONFIG_SCHED_IRQMONITOR + up_perf_init((void *)STM32_SYSCLK_FREQUENCY); +#endif + /* Perform early serial initialization */ #ifdef USE_EARLYSERIALINIT diff --git a/arch/arm/src/stm32l5/stm32l5_start.c b/arch/arm/src/stm32l5/stm32l5_start.c index 9b93674366..d7076ae75c 100644 --- a/arch/arm/src/stm32l5/stm32l5_start.c +++ b/arch/arm/src/stm32l5/stm32l5_start.c @@ -181,6 +181,10 @@ void __start(void) showprogress('C'); +#ifdef CONFIG_SCHED_IRQMONITOR + up_perf_init((void *)STM32_SYSCLK_FREQUENCY); +#endif + /* Perform early serial initialization */ #ifdef USE_EARLYSERIALINIT diff --git a/arch/arm/src/stm32u5/stm32_start.c b/arch/arm/src/stm32u5/stm32_start.c index 27688e6cf7..95594a740e 100644 --- a/arch/arm/src/stm32u5/stm32_start.c +++ b/arch/arm/src/stm32u5/stm32_start.c @@ -181,6 +181,10 @@ void __start(void) showprogress('C'); +#ifdef CONFIG_SCHED_IRQMONITOR + up_perf_init((void *)STM32_SYSCLK_FREQUENCY); +#endif + /* Perform early serial initialization */ #ifdef USE_EARLYSERIALINIT diff --git a/arch/arm/src/stm32wb/stm32wb_start.c b/arch/arm/src/stm32wb/stm32wb_start.c index 4e7e3cb083..c144f9f54b 100644 --- a/arch/arm/src/stm32wb/stm32wb_start.c +++ b/arch/arm/src/stm32wb/stm32wb_start.c @@ -199,6 +199,10 @@ void __start(void) showprogress('C'); +#ifdef CONFIG_SCHED_IRQMONITOR + up_perf_init((void *)STM32_SYSCLK_FREQUENCY); +#endif + /* Perform early serial initialization */ #ifdef USE_EARLYSERIALINIT diff --git a/arch/arm/src/stm32wl5/stm32wl5_start.c b/arch/arm/src/stm32wl5/stm32wl5_start.c index 8b222bef0e..41df15e860 100644 --- a/arch/arm/src/stm32wl5/stm32wl5_start.c +++ b/arch/arm/src/stm32wl5/stm32wl5_start.c @@ -183,6 +183,10 @@ void __start(void) showprogress('C'); +#ifdef CONFIG_SCHED_IRQMONITOR + up_perf_init((void *)STM32_SYSCLK_FREQUENCY); +#endif + /* Perform early serial initialization */ #ifdef USE_EARLYSERIALINIT