tests: kernel: context: fix soc.h include policy
Include only on platforms that are known to require it. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
5b55440c08
commit
6cfdd336dd
1 changed files with 2 additions and 5 deletions
|
@ -26,11 +26,8 @@
|
||||||
#include <zephyr/irq_offload.h>
|
#include <zephyr/irq_offload.h>
|
||||||
#include <zephyr/sys_clock.h>
|
#include <zephyr/sys_clock.h>
|
||||||
|
|
||||||
/*
|
#if defined(CONFIG_SOC_POSIX) || defined(CONFIG_ARC)
|
||||||
* Include soc.h from platform to get IRQ number.
|
/* TIMER_TICK_IRQ <soc.h> header for certain platforms */
|
||||||
* NOTE: Cortex-M does not need IRQ numbers
|
|
||||||
*/
|
|
||||||
#if !defined(CONFIG_CPU_CORTEX_M) && !defined(CONFIG_XTENSA)
|
|
||||||
#include <soc.h>
|
#include <soc.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue