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:
Gerard Marull-Paretas 2022-06-01 10:25:20 +02:00 committed by Carles Cufí
parent 5b55440c08
commit 6cfdd336dd

View file

@ -26,11 +26,8 @@
#include <zephyr/irq_offload.h>
#include <zephyr/sys_clock.h>
/*
* Include soc.h from platform to get IRQ number.
* NOTE: Cortex-M does not need IRQ numbers
*/
#if !defined(CONFIG_CPU_CORTEX_M) && !defined(CONFIG_XTENSA)
#if defined(CONFIG_SOC_POSIX) || defined(CONFIG_ARC)
/* TIMER_TICK_IRQ <soc.h> header for certain platforms */
#include <soc.h>
#endif