summaryrefslogtreecommitdiff
path: root/include/task.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/task.h')
-rw-r--r--include/task.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/task.h b/include/task.h
index 4cbd60b857..723c6f0ad6 100644
--- a/include/task.h
+++ b/include/task.h
@@ -205,6 +205,10 @@ struct irq_priority {
* Implement the DECLARE_IRQ(irq, routine, priority) macro which is
* a core specific helper macro to declare an interrupt handler "routine".
*/
+#ifdef CONFIG_COMMON_RUNTIME
#include "irq_handler.h"
+#else
+#define DECLARE_IRQ(irq, routine, priority)
+#endif
#endif /* __CROS_EC_TASK_H */