Skip to content

Commit b6a32bb

Browse files
committed
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]> Link: https://lkml.kernel.org/r/[email protected]
1 parent d1abaeb commit b6a32bb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

include/linux/interrupt.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,11 @@ extern int irq_set_irqchip_state(unsigned int irq, enum irqchip_irq_state which,
472472
bool state);
473473

474474
#ifdef CONFIG_IRQ_FORCED_THREADING
475+
# ifdef CONFIG_PREEMPT_RT
476+
# define force_irqthreads (true)
477+
# else
475478
extern bool force_irqthreads;
479+
# endif
476480
#else
477481
#define force_irqthreads (0)
478482
#endif

kernel/irq/manage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
#include "internals.h"
2525

26-
#ifdef CONFIG_IRQ_FORCED_THREADING
26+
#if defined(CONFIG_IRQ_FORCED_THREADING) && !defined(CONFIG_PREEMPT_RT)
2727
__read_mostly bool force_irqthreads;
2828
EXPORT_SYMBOL_GPL(force_irqthreads);
2929

0 commit comments

Comments
 (0)