arch/stm32: Initialize up_perf after system boot

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
yinshengkai 2023-01-06 10:38:54 +08:00 committed by Xiang Xiao
parent 8c9e90882d
commit 4752dcd12a
9 changed files with 36 additions and 0 deletions

View File

@ -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 */

View File

@ -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

View File

@ -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 */

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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