2020-04-21 20:13:52 +00:00
|
|
|
From 7dca342c202dd085c2ed2817d5bf9bdfb8d9fd4b Mon Sep 17 00:00:00 2001
|
2018-08-27 14:32:32 +00:00
|
|
|
From: Thomas Gleixner <tglx@linutronix.de>
|
2019-04-08 23:49:20 +00:00
|
|
|
Date: Sun, 3 Apr 2011 11:57:29 +0200
|
2020-04-21 20:13:52 +00:00
|
|
|
Subject: [PATCH 071/325] genirq: Force interrupt thread on RT
|
|
|
|
Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patches-4.19.115-rt48.tar.xz
|
2018-08-27 14:32:32 +00:00
|
|
|
|
|
|
|
Force threaded_irqs and optimize the code (force_irqthreads) in regard
|
|
|
|
to this.
|
|
|
|
|
|
|
|
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
|
|
|
|
---
|
2019-04-08 23:49:20 +00:00
|
|
|
include/linux/interrupt.h | 4 ++++
|
|
|
|
kernel/irq/manage.c | 2 ++
|
2018-08-27 14:32:32 +00:00
|
|
|
2 files changed, 6 insertions(+)
|
|
|
|
|
2019-11-25 00:04:39 +00:00
|
|
|
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h
|
|
|
|
index eeceac3376fc..315f852b4981 100644
|
2018-08-27 14:32:32 +00:00
|
|
|
--- a/include/linux/interrupt.h
|
|
|
|
+++ b/include/linux/interrupt.h
|
2019-11-25 00:04:39 +00:00
|
|
|
@@ -427,7 +427,11 @@ extern int irq_set_irqchip_state(unsigned int irq, enum irqchip_irq_state which,
|
2018-08-27 14:32:32 +00:00
|
|
|
bool state);
|
|
|
|
|
|
|
|
#ifdef CONFIG_IRQ_FORCED_THREADING
|
|
|
|
+# ifdef CONFIG_PREEMPT_RT_BASE
|
|
|
|
+# define force_irqthreads (true)
|
|
|
|
+# else
|
|
|
|
extern bool force_irqthreads;
|
|
|
|
+# endif
|
|
|
|
#else
|
|
|
|
#define force_irqthreads (0)
|
|
|
|
#endif
|
2019-11-25 00:04:39 +00:00
|
|
|
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
|
2020-04-21 20:13:52 +00:00
|
|
|
index efcb54ee0922..0809bf7743af 100644
|
2018-08-27 14:32:32 +00:00
|
|
|
--- a/kernel/irq/manage.c
|
|
|
|
+++ b/kernel/irq/manage.c
|
2019-08-18 21:33:52 +00:00
|
|
|
@@ -24,6 +24,7 @@
|
2018-08-27 14:32:32 +00:00
|
|
|
#include "internals.h"
|
|
|
|
|
|
|
|
#ifdef CONFIG_IRQ_FORCED_THREADING
|
|
|
|
+# ifndef CONFIG_PREEMPT_RT_BASE
|
|
|
|
__read_mostly bool force_irqthreads;
|
|
|
|
EXPORT_SYMBOL_GPL(force_irqthreads);
|
|
|
|
|
2019-11-25 00:04:39 +00:00
|
|
|
@@ -33,6 +34,7 @@ static int __init setup_forced_irqthreads(char *arg)
|
2018-08-27 14:32:32 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
early_param("threadirqs", setup_forced_irqthreads);
|
|
|
|
+# endif
|
|
|
|
#endif
|
|
|
|
|
2019-08-18 21:33:52 +00:00
|
|
|
static void __synchronize_hardirq(struct irq_desc *desc, bool sync_chip)
|
2020-01-03 23:36:11 +00:00
|
|
|
--
|
2020-04-09 19:44:24 +00:00
|
|
|
2.25.1
|
2020-01-03 23:36:11 +00:00
|
|
|
|