From 3e66cc30d0dce89fd9321c82432bfed341d14af6 Mon Sep 17 00:00:00 2001 From: wangmingrong1 Date: Thu, 15 Aug 2024 12:04:47 +0800 Subject: [PATCH] arch/qemu: up_perf_init depends on CONFIG_ARCH_PERF_EVENTS Signed-off-by: wangmingrong1 Signed-off-by: ligd --- arch/arm/src/goldfish/goldfish_boot.c | 2 ++ arch/arm/src/qemu/qemu_boot.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/arm/src/goldfish/goldfish_boot.c b/arch/arm/src/goldfish/goldfish_boot.c index fdc34234dc7..b8247c6f4e6 100644 --- a/arch/arm/src/goldfish/goldfish_boot.c +++ b/arch/arm/src/goldfish/goldfish_boot.c @@ -50,9 +50,11 @@ void arm_boot(void) { +#ifdef CONFIG_ARCH_PERF_EVENTS /* Perf init */ up_perf_init(0); +#endif /* Set the page table for section */ diff --git a/arch/arm/src/qemu/qemu_boot.c b/arch/arm/src/qemu/qemu_boot.c index 027fb8392ed..82f4a8e9305 100644 --- a/arch/arm/src/qemu/qemu_boot.c +++ b/arch/arm/src/qemu/qemu_boot.c @@ -60,9 +60,11 @@ static char g_syslog_rpmsg_buf[4096]; void arm_boot(void) { +#ifdef CONFIG_ARCH_PERF_EVENTS /* Perf init */ up_perf_init(0); +#endif /* Set the page table for section */