Skip to content

Commit 429f49a

Browse files
andy-shevKAGA-KOKO
authored andcommitted
genirq: Reuse irq_thread_fn() for forced thread case
rq_forced_thread_fn() uses the same action callback as the non-forced variant but with different locking decorations. Reuse irq_thread_fn() here to make that clear. Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/all/[email protected]
1 parent 6f8b796 commit 429f49a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

kernel/irq/manage.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,11 +1210,7 @@ static irqreturn_t irq_forced_thread_fn(struct irq_desc *desc, struct irqaction
12101210
local_bh_disable();
12111211
if (!IS_ENABLED(CONFIG_PREEMPT_RT))
12121212
local_irq_disable();
1213-
ret = action->thread_fn(action->irq, action->dev_id);
1214-
if (ret == IRQ_HANDLED)
1215-
atomic_inc(&desc->threads_handled);
1216-
1217-
irq_finalize_oneshot(desc, action);
1213+
ret = irq_thread_fn(desc, action);
12181214
if (!IS_ENABLED(CONFIG_PREEMPT_RT))
12191215
local_irq_enable();
12201216
local_bh_enable();

0 commit comments

Comments
 (0)