From f61b8f9fd22d00246f6044182b6ef164f2fb26b3 Mon Sep 17 00:00:00 2001 From: Dong Wang Date: Fri, 13 Sep 2024 09:32:33 +0800 Subject: [PATCH] tests/kernel/context: correct the way to get IRQ number of APIC TSC Timer This case fails to build on boards having APIC TSC timer enabled. This change is needed after moving APIC TSC timer support from apic_timer.c to apic_tsc.c. Signed-off-by: Dong Wang --- tests/kernel/context/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/kernel/context/src/main.c b/tests/kernel/context/src/main.c index d8ce8fc69a3cc1..699c7bdc642bb0 100644 --- a/tests/kernel/context/src/main.c +++ b/tests/kernel/context/src/main.c @@ -47,7 +47,7 @@ * is not defined in platform, generate an error */ -#if defined(CONFIG_APIC_TSC_DEADLINE_TIMER) +#if defined(CONFIG_APIC_TSC_DEADLINE_TIMER) || defined(CONFIG_APIC_TIMER_TSC) #define TICK_IRQ z_loapic_irq_base() /* first LVT interrupt */ #elif defined(CONFIG_CPU_CORTEX_M) /*