From 8c9e90882dcde34e44aa57a3b5d24f6c77822172 Mon Sep 17 00:00:00 2001 From: yinshengkai Date: Fri, 6 Jan 2023 10:37:13 +0800 Subject: [PATCH] boards/stm32: remove up_perf_init from boardinitialize Signed-off-by: yinshengkai --- boards/arm/stm32/axoloti/src/stm32_boot.c | 4 ---- boards/arm/stm32/nucleo-f446re/src/stm32_boot.c | 4 ---- boards/arm/stm32/omnibusf4/src/stm32_boot.c | 4 ---- boards/arm/stm32/stm32f4discovery/src/stm32_boot.c | 4 ---- boards/arm/stm32h7/nucleo-h743zi2/src/stm32_boot.c | 4 ---- 5 files changed, 20 deletions(-) diff --git a/boards/arm/stm32/axoloti/src/stm32_boot.c b/boards/arm/stm32/axoloti/src/stm32_boot.c index 3e1117f055f..daca348a4eb 100644 --- a/boards/arm/stm32/axoloti/src/stm32_boot.c +++ b/boards/arm/stm32/axoloti/src/stm32_boot.c @@ -53,10 +53,6 @@ void stm32_boardinitialize(void) { -#ifdef CONFIG_SCHED_CRITMONITOR - up_perf_init((void *)STM32_SYSCLK_FREQUENCY); -#endif - #if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) || \ defined(CONFIG_STM32_SPI3) stm32_spidev_initialize(); diff --git a/boards/arm/stm32/nucleo-f446re/src/stm32_boot.c b/boards/arm/stm32/nucleo-f446re/src/stm32_boot.c index 417ac318fd1..456de69d990 100644 --- a/boards/arm/stm32/nucleo-f446re/src/stm32_boot.c +++ b/boards/arm/stm32/nucleo-f446re/src/stm32_boot.c @@ -52,10 +52,6 @@ void stm32_boardinitialize(void) { -#ifdef CONFIG_SEGGER_SYSVIEW - up_perf_init((void *)STM32_SYSCLK_FREQUENCY); -#endif - #ifdef CONFIG_ARCH_LEDS /* Configure on-board LEDs if LED support has been selected. */ diff --git a/boards/arm/stm32/omnibusf4/src/stm32_boot.c b/boards/arm/stm32/omnibusf4/src/stm32_boot.c index 2e8c0c9b10a..475c596d4d0 100644 --- a/boards/arm/stm32/omnibusf4/src/stm32_boot.c +++ b/boards/arm/stm32/omnibusf4/src/stm32_boot.c @@ -53,10 +53,6 @@ void stm32_boardinitialize(void) { -#ifdef CONFIG_SCHED_CRITMONITOR - up_perf_init((void *)STM32_SYSCLK_FREQUENCY); -#endif - #if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) || defined(CONFIG_STM32_SPI3) /* Configure SPI chip selects if 1) SPI is not disabled, and 2) the weak * function stm32_spidev_initialize() has been brought into the link. diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_boot.c b/boards/arm/stm32/stm32f4discovery/src/stm32_boot.c index 31228991c6b..b435f4badd1 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_boot.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_boot.c @@ -53,10 +53,6 @@ void stm32_boardinitialize(void) { -#ifdef CONFIG_SCHED_CRITMONITOR - up_perf_init((void *)STM32_SYSCLK_FREQUENCY); -#endif - #if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) || defined(CONFIG_STM32_SPI3) /* Configure SPI chip selects if 1) SPI is not disabled, and 2) the weak * function stm32_spidev_initialize() has been brought into the link. diff --git a/boards/arm/stm32h7/nucleo-h743zi2/src/stm32_boot.c b/boards/arm/stm32h7/nucleo-h743zi2/src/stm32_boot.c index 65d8f00ee92..eea8065eebe 100644 --- a/boards/arm/stm32h7/nucleo-h743zi2/src/stm32_boot.c +++ b/boards/arm/stm32h7/nucleo-h743zi2/src/stm32_boot.c @@ -50,10 +50,6 @@ void stm32_boardinitialize(void) { -#ifdef CONFIG_SCHED_IRQMONITOR - up_perf_init((void *)STM32_SYSCLK_FREQUENCY); -#endif - #ifdef CONFIG_ARCH_LEDS /* Configure on-board LEDs if LED support has been selected. */