Skip to content

Commit f61b8f9

Browse files
kwd-doodlingfabiobaltieri
authored andcommitted
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 <[email protected]>
1 parent 8aab3ca commit f61b8f9

File tree

1 file changed

+1
-1
lines changed
  • tests/kernel/context/src

1 file changed

+1
-1
lines changed

tests/kernel/context/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
* is not defined in platform, generate an error
4848
*/
4949

50-
#if defined(CONFIG_APIC_TSC_DEADLINE_TIMER)
50+
#if defined(CONFIG_APIC_TSC_DEADLINE_TIMER) || defined(CONFIG_APIC_TIMER_TSC)
5151
#define TICK_IRQ z_loapic_irq_base() /* first LVT interrupt */
5252
#elif defined(CONFIG_CPU_CORTEX_M)
5353
/*

0 commit comments

Comments
 (0)