forked from rrcarlosr/Jetpack
57 lines
1.6 KiB
Diff
57 lines
1.6 KiB
Diff
From 9ae2136d8f5045c38ccb8c92a0ca4df9d4bee31e Mon Sep 17 00:00:00 2001
|
|
From: Thomas Gleixner <tglx@linutronix.de>
|
|
Date: Sun, 3 Apr 2011 11:57:29 +0200
|
|
Subject: [PATCH 098/352] genirq: Force interrupt thread on RT
|
|
|
|
Force threaded_irqs and optimize the code (force_irqthreads) in regard
|
|
to this.
|
|
|
|
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
|
|
---
|
|
include/linux/interrupt.h | 6 +++++-
|
|
kernel/irq/manage.c | 2 ++
|
|
2 files changed, 7 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h
|
|
index d28272d..75dcdf8 100644
|
|
--- a/include/linux/interrupt.h
|
|
+++ b/include/linux/interrupt.h
|
|
@@ -407,9 +407,13 @@ extern int irq_set_irqchip_state(unsigned int irq, enum irqchip_irq_state which,
|
|
bool state);
|
|
|
|
#ifdef CONFIG_IRQ_FORCED_THREADING
|
|
+# ifndef CONFIG_PREEMPT_RT_BASE
|
|
extern bool force_irqthreads;
|
|
+# else
|
|
+# define force_irqthreads (true)
|
|
+# endif
|
|
#else
|
|
-#define force_irqthreads (0)
|
|
+#define force_irqthreads (false)
|
|
#endif
|
|
|
|
#ifndef __ARCH_SET_SOFTIRQ_PENDING
|
|
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
|
|
index cf94460..a841ad3 100644
|
|
--- a/kernel/irq/manage.c
|
|
+++ b/kernel/irq/manage.c
|
|
@@ -22,6 +22,7 @@
|
|
#include "internals.h"
|
|
|
|
#ifdef CONFIG_IRQ_FORCED_THREADING
|
|
+# ifndef CONFIG_PREEMPT_RT_BASE
|
|
__read_mostly bool force_irqthreads;
|
|
|
|
static int __init setup_forced_irqthreads(char *arg)
|
|
@@ -30,6 +31,7 @@ static int __init setup_forced_irqthreads(char *arg)
|
|
return 0;
|
|
}
|
|
early_param("threadirqs", setup_forced_irqthreads);
|
|
+# endif
|
|
#endif
|
|
|
|
static void __synchronize_hardirq(struct irq_desc *desc)
|
|
--
|
|
2.7.4
|
|
|