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 <dong.d.wang@intel.com>
This commit is contained in:
Dong Wang 2024-09-13 09:32:33 +08:00 committed by Fabio Baltieri
commit f61b8f9fd2

View file

@ -47,7 +47,7 @@
* is not defined in platform, generate an error * 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 */ #define TICK_IRQ z_loapic_irq_base() /* first LVT interrupt */
#elif defined(CONFIG_CPU_CORTEX_M) #elif defined(CONFIG_CPU_CORTEX_M)
/* /*