From 795d36f8118320b58c2209f33eb19c8780226243 Mon Sep 17 00:00:00 2001 From: Andy Ross Date: Tue, 7 Sep 2021 09:40:00 -0700 Subject: [PATCH] drivers/timer/cavs_timer: Don't suppress smp_timer_init() This function wasn't being defined when SMP_BOOT_DELAY was set or when SMP wasn't enabled. There's no reason for either, then function doesn't depend on any kconfig-dependent build-time state, and (given that we use -ffunction-sections) it won't appear in output binaries unless called. And there are use cases (e.g. z_smp_start_cpu()) where we need that function even when BOOT_DELAY is enabled. Signed-off-by: Andy Ross --- drivers/timer/cavs_timer.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/timer/cavs_timer.c b/drivers/timer/cavs_timer.c index 46c80271d38..b10b499b72b 100644 --- a/drivers/timer/cavs_timer.c +++ b/drivers/timer/cavs_timer.c @@ -182,7 +182,6 @@ uint32_t sys_clock_cycle_get_32(void) return count32(); } -#if defined(CONFIG_SMP) && CONFIG_MP_NUM_CPUS > 1 && !defined(CONFIG_SMP_BOOT_DELAY) /* Runs on secondary cores */ void smp_timer_init(void) { @@ -197,4 +196,3 @@ void smp_timer_init(void) 22 + TIMER); irq_enable(TIMER_IRQ); } -#endif