genirq: Force interrupt thread on RT
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.
Signed-off-by Thomas Gleixner <[email protected]>
Signed-off-by Sebastian Andrzej Siewior <[email protected]>
--- 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);
tip-bot for Thomas Gleixner
merge bot[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.
Signed-off-by Thomas Gleixner <[email protected]>
Signed-off-by Sebastian Andrzej Siewior <[email protected]>
Signed-off-by Thomas Gleixner <[email protected]>
--- include/linux/interrupt.h | 4 ++++ kernel/irq/manage.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-)
include/linux/interrupt.h +4 -0
@@ -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
@@ -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);