]> Git Repo - linux.git/commitdiff
genirq: Force interrupt threading on RT
authorThomas Gleixner <[email protected]>
Fri, 16 Aug 2019 16:09:23 +0000 (18:09 +0200)
committerThomas Gleixner <[email protected]>
Mon, 19 Aug 2019 13:45:48 +0000 (15:45 +0200)
Switch force_irqthreads from a boot time modifiable variable to a compile
time constant when CONFIG_PREEMPT_RT is enabled.

Signed-off-by: Thomas Gleixner <[email protected]>
Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
include/linux/interrupt.h
kernel/irq/manage.c

index 5b8328a99b2aaa4295f4eadf763657c69c0fee24..07b527dca99601f2e5d33a9c80b160aca7fbd387 100644 (file)
@@ -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
index e8f7f179bf77e6a721deaaf349462edbc14ef8f3..97de1b7d43af7f73b28946b130319bf9cc943053 100644 (file)
@@ -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);
 
This page took 0.067473 seconds and 4 git commands to generate.