Skip to content

Commit

Permalink
tests/kernel/context: correct the way to get IRQ number of APIC TSC T…
Browse files Browse the repository at this point in the history
…imer

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]>
  • Loading branch information
kwd-doodling authored and fabiobaltieri committed Sep 23, 2024
1 parent 8aab3ca commit f61b8f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/kernel/context/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
/*
Expand Down

0 comments on commit f61b8f9

Please sign in to comment.