Skip to content

Commit 795d36f

Browse files
Andy Rossnashif
authored andcommitted
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 <[email protected]>
1 parent 343c0bd commit 795d36f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/timer/cavs_timer.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ uint32_t sys_clock_cycle_get_32(void)
182182
return count32();
183183
}
184184

185-
#if defined(CONFIG_SMP) && CONFIG_MP_NUM_CPUS > 1 && !defined(CONFIG_SMP_BOOT_DELAY)
186185
/* Runs on secondary cores */
187186
void smp_timer_init(void)
188187
{
@@ -197,4 +196,3 @@ void smp_timer_init(void)
197196
22 + TIMER);
198197
irq_enable(TIMER_IRQ);
199198
}
200-
#endif

0 commit comments

Comments
 (0)