You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/08/25 19:35:42 UTC

[nuttx] 04/09: arch/stm32h7: use STM32_CPUCLK_FREQUENCY to initialize perf

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 86134461f3cec6e50ccd675287e9259a26f7c090
Author: raiden00pl <ra...@railab.me>
AuthorDate: Mon Aug 21 09:52:50 2023 +0200

    arch/stm32h7: use STM32_CPUCLK_FREQUENCY to initialize perf
---
 arch/arm/src/stm32h7/stm32_start.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/src/stm32h7/stm32_start.c b/arch/arm/src/stm32h7/stm32_start.c
index a4e7782fd5..f8f37257eb 100644
--- a/arch/arm/src/stm32h7/stm32_start.c
+++ b/arch/arm/src/stm32h7/stm32_start.c
@@ -247,7 +247,7 @@ void __start(void)
   showprogress('C');
 
 #if defined(CONFIG_SCHED_IRQMONITOR) || defined(CONFIG_SEGGER_SYSVIEW)
-  up_perf_init((void *)STM32_SYSCLK_FREQUENCY);
+  up_perf_init((void *)STM32_CPUCLK_FREQUENCY);
 #endif
 
   /* Perform early serial initialization */