arch/stm32: Initialize up_perf after system boot
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
parent
8c9e90882d
commit
4752dcd12a
@ -157,6 +157,10 @@ void __start(void)
|
|||||||
|
|
||||||
showprogress('C');
|
showprogress('C');
|
||||||
|
|
||||||
|
#ifdef CONFIG_SCHED_IRQMONITOR
|
||||||
|
up_perf_init((void *)STM32_SYSCLK_FREQUENCY);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_ARMV7M_ITMSYSLOG
|
#ifdef CONFIG_ARMV7M_ITMSYSLOG
|
||||||
/* Perform ARMv7-M ITM SYSLOG initialization */
|
/* Perform ARMv7-M ITM SYSLOG initialization */
|
||||||
|
|
||||||
|
@ -115,6 +115,10 @@ void __start(void)
|
|||||||
|
|
||||||
showprogress('C');
|
showprogress('C');
|
||||||
|
|
||||||
|
#ifdef CONFIG_SCHED_IRQMONITOR
|
||||||
|
up_perf_init((void *)STM32_SYSCLK_FREQUENCY);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Perform early serial initialization */
|
/* Perform early serial initialization */
|
||||||
|
|
||||||
#ifdef USE_EARLYSERIALINIT
|
#ifdef USE_EARLYSERIALINIT
|
||||||
|
@ -245,6 +245,10 @@ void __start(void)
|
|||||||
up_enable_dcache();
|
up_enable_dcache();
|
||||||
showprogress('C');
|
showprogress('C');
|
||||||
|
|
||||||
|
#ifdef CONFIG_SCHED_IRQMONITOR
|
||||||
|
up_perf_init((void *)STM32_SYSCLK_FREQUENCY);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_ARMV7M_ITMSYSLOG
|
#ifdef CONFIG_ARMV7M_ITMSYSLOG
|
||||||
/* Perform ARMv7-M ITM SYSLOG initialization */
|
/* Perform ARMv7-M ITM SYSLOG initialization */
|
||||||
|
|
||||||
|
@ -246,6 +246,10 @@ void __start(void)
|
|||||||
up_enable_dcache();
|
up_enable_dcache();
|
||||||
showprogress('C');
|
showprogress('C');
|
||||||
|
|
||||||
|
#ifdef CONFIG_SCHED_IRQMONITOR
|
||||||
|
up_perf_init((void *)STM32_SYSCLK_FREQUENCY);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Perform early serial initialization */
|
/* Perform early serial initialization */
|
||||||
|
|
||||||
#ifdef USE_EARLYSERIALINIT
|
#ifdef USE_EARLYSERIALINIT
|
||||||
|
@ -179,6 +179,10 @@ void __start(void)
|
|||||||
|
|
||||||
showprogress('C');
|
showprogress('C');
|
||||||
|
|
||||||
|
#ifdef CONFIG_SCHED_IRQMONITOR
|
||||||
|
up_perf_init((void *)STM32_SYSCLK_FREQUENCY);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Perform early serial initialization */
|
/* Perform early serial initialization */
|
||||||
|
|
||||||
#ifdef USE_EARLYSERIALINIT
|
#ifdef USE_EARLYSERIALINIT
|
||||||
|
@ -181,6 +181,10 @@ void __start(void)
|
|||||||
|
|
||||||
showprogress('C');
|
showprogress('C');
|
||||||
|
|
||||||
|
#ifdef CONFIG_SCHED_IRQMONITOR
|
||||||
|
up_perf_init((void *)STM32_SYSCLK_FREQUENCY);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Perform early serial initialization */
|
/* Perform early serial initialization */
|
||||||
|
|
||||||
#ifdef USE_EARLYSERIALINIT
|
#ifdef USE_EARLYSERIALINIT
|
||||||
|
@ -181,6 +181,10 @@ void __start(void)
|
|||||||
|
|
||||||
showprogress('C');
|
showprogress('C');
|
||||||
|
|
||||||
|
#ifdef CONFIG_SCHED_IRQMONITOR
|
||||||
|
up_perf_init((void *)STM32_SYSCLK_FREQUENCY);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Perform early serial initialization */
|
/* Perform early serial initialization */
|
||||||
|
|
||||||
#ifdef USE_EARLYSERIALINIT
|
#ifdef USE_EARLYSERIALINIT
|
||||||
|
@ -199,6 +199,10 @@ void __start(void)
|
|||||||
|
|
||||||
showprogress('C');
|
showprogress('C');
|
||||||
|
|
||||||
|
#ifdef CONFIG_SCHED_IRQMONITOR
|
||||||
|
up_perf_init((void *)STM32_SYSCLK_FREQUENCY);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Perform early serial initialization */
|
/* Perform early serial initialization */
|
||||||
|
|
||||||
#ifdef USE_EARLYSERIALINIT
|
#ifdef USE_EARLYSERIALINIT
|
||||||
|
@ -183,6 +183,10 @@ void __start(void)
|
|||||||
|
|
||||||
showprogress('C');
|
showprogress('C');
|
||||||
|
|
||||||
|
#ifdef CONFIG_SCHED_IRQMONITOR
|
||||||
|
up_perf_init((void *)STM32_SYSCLK_FREQUENCY);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Perform early serial initialization */
|
/* Perform early serial initialization */
|
||||||
|
|
||||||
#ifdef USE_EARLYSERIALINIT
|
#ifdef USE_EARLYSERIALINIT
|
||||||
|
Loading…
Reference in New Issue
Block a user