Skip to contentSkip to conversation

genirq: Force interrupt thread on RT

PATCH New Sebastian Andrzej Siewior 2 participants 2 messages Aug 16, 2019 – Aug 19, 2019 IRQ

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 genirq: Force interrupt thread on RT

From: Thomas Gleixner <[email protected]>

Force threaded_irqs and optimize the code (force_irqthreads) in regard to this.

---
 include/linux/interrupt.h |    4 ++++
 kernel/irq/manage.c       |    2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)
include/linux/interrupt.h +4 -0
@@ -473,7 +473,11 @@ extern int irq_set_irqchip_state(unsigne
 				 bool state);
 
 #ifdef CONFIG_IRQ_FORCED_THREADING
+# ifdef CONFIG_PREEMPT_RT
+#  define force_irqthreads	(true)
+# else
 extern bool force_irqthreads;
+# endif
 #else
 #define force_irqthreads	(0)
 #endif
kernel/irq/manage.c +1 -1
@@ -23,7 +23,7 @@
 
 #include "internals.h"
 
-#ifdef CONFIG_IRQ_FORCED_THREADING
+#if defined(CONFIG_IRQ_FORCED_THREADING) && !defined(CONFIG_PREEMPT_RT)
 __read_mostly bool force_irqthreads;
 EXPORT_SYMBOL_GPL(force_irqthreads);
 
#1 lore raw

[tip:irq/core] genirq: Force interrupt threading on RT

genirq: Force interrupt threading on RT
Commit-ID:  b6a32bbd8735def2d0d696ba59205d1874b7800f
Gitweb:     https://git.kernel.org/tip/b6a32bbd8735def2d0d696ba59205d1874b7800f
Author:     Thomas Gleixner <[email protected]>
AuthorDate: Fri, 16 Aug 2019 18:09:23 +0200
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Mon, 19 Aug 2019 15:45:48 +0200

genirq: Force interrupt threading on RT

Switch force_irqthreads from a boot time modifiable variable to a compile time constant when CONFIG_PREEMPT_RT is enabled.

---
 include/linux/interrupt.h | 4 ++++
 kernel/irq/manage.c       | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)
include/linux/interrupt.h +4 -0
index 5b8328a99b2a..07b527dca996 100644
@@ -472,7 +472,11 @@ extern int irq_set_irqchip_state(unsigned int irq, enum irqchip_irq_state which,
 				 bool state);
 
 #ifdef CONFIG_IRQ_FORCED_THREADING
+# ifdef CONFIG_PREEMPT_RT
+#  define force_irqthreads	(true)
+# else
 extern bool force_irqthreads;
+# endif
 #else
 #define force_irqthreads	(0)
 #endif
kernel/irq/manage.c +1 -1
index e8f7f179bf77..97de1b7d43af 100644
@@ -23,7 +23,7 @@
 
 #include "internals.h"
 
-#ifdef CONFIG_IRQ_FORCED_THREADING
+#if defined(CONFIG_IRQ_FORCED_THREADING) && !defined(CONFIG_PREEMPT_RT)
 __read_mostly bool force_irqthreads;
 EXPORT_SYMBOL_GPL(force_irqthreads);