mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 06:37:59 +00:00
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 <tglx@linutronix.de> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lkml.kernel.org/r/20190816160923.12855-1-bigeasy@linutronix.de
This commit is contained in:
parent
d1abaeb3be
commit
b6a32bbd87
2 changed files with 5 additions and 1 deletions
|
@ -472,7 +472,11 @@ extern int irq_set_irqchip_state(unsigned int irq, enum irqchip_irq_state which,
|
||||||
bool state);
|
bool state);
|
||||||
|
|
||||||
#ifdef CONFIG_IRQ_FORCED_THREADING
|
#ifdef CONFIG_IRQ_FORCED_THREADING
|
||||||
|
# ifdef CONFIG_PREEMPT_RT
|
||||||
|
# define force_irqthreads (true)
|
||||||
|
# else
|
||||||
extern bool force_irqthreads;
|
extern bool force_irqthreads;
|
||||||
|
# endif
|
||||||
#else
|
#else
|
||||||
#define force_irqthreads (0)
|
#define force_irqthreads (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
#include "internals.h"
|
#include "internals.h"
|
||||||
|
|
||||||
#ifdef CONFIG_IRQ_FORCED_THREADING
|
#if defined(CONFIG_IRQ_FORCED_THREADING) && !defined(CONFIG_PREEMPT_RT)
|
||||||
__read_mostly bool force_irqthreads;
|
__read_mostly bool force_irqthreads;
|
||||||
EXPORT_SYMBOL_GPL(force_irqthreads);
|
EXPORT_SYMBOL_GPL(force_irqthreads);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue