From 2298c3330ad2e687aee27bc800b9956116167aaa Mon Sep 17 00:00:00 2001 From: GuEe-GUI <2991707448@qq.com> Date: Wed, 11 Dec 2024 17:42:34 +0800 Subject: [PATCH] [DM/FIXUP] Fixup PIC ktime depends Signed-off-by: GuEe-GUI <2991707448@qq.com> --- components/drivers/pic/Kconfig | 1 + components/drivers/pic/pic.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/components/drivers/pic/Kconfig b/components/drivers/pic/Kconfig index d8d077fb7626..3cf00c029560 100755 --- a/components/drivers/pic/Kconfig +++ b/components/drivers/pic/Kconfig @@ -8,6 +8,7 @@ menuconfig RT_USING_PIC config RT_USING_PIC_STATISTICS bool "Enable ISR execution time statistics" depends on RT_USING_PIC + depends on RT_USING_KTIME depends on RT_USING_INTERRUPT_INFO default n diff --git a/components/drivers/pic/pic.c b/components/drivers/pic/pic.c index eebe3fd6feb2..032c965d5281 100644 --- a/components/drivers/pic/pic.c +++ b/components/drivers/pic/pic.c @@ -16,7 +16,9 @@ #include #include +#ifdef RT_USING_PIC_STATISTICS #include +#endif struct irq_traps {