hc
2024-11-01 7e970c18f85f99acc678d90128b6e01dce1bf273
kernel/kernel/irq/resend.c
....@@ -16,10 +16,11 @@
1616 #include <linux/module.h>
1717 #include <linux/random.h>
1818 #include <linux/interrupt.h>
19
+#include <linux/irq_pipeline.h>
1920
2021 #include "internals.h"
2122
22
-#ifdef CONFIG_HARDIRQS_SW_RESEND
23
+#if defined(CONFIG_HARDIRQS_SW_RESEND) && !defined(CONFIG_IRQ_PIPELINE)
2324
2425 /* Bitmap to handle software resend of interrupts: */
2526 static DECLARE_BITMAP(irqs_resend, IRQ_BITMAP_BITS);
....@@ -82,7 +83,12 @@
8283 #else
8384 static int irq_sw_resend(struct irq_desc *desc)
8485 {
86
+#if defined(CONFIG_HARDIRQS_SW_RESEND) && defined(CONFIG_IRQ_PIPELINE)
87
+ irq_inject_pipeline(irq_desc_get_irq(desc));
88
+ return 0;
89
+#else
8590 return -EINVAL;
91
+#endif
8692 }
8793 #endif
8894