Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <andriy.shevchenko@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20241119104339.2112455-3-andriy.shevchenko@linux.intel.com

authored by

Andy Shevchenko and committed by
Thomas Gleixner
429f49ad 6f8b7968

+1 -5
+1 -5
kernel/irq/manage.c
··· 1210 1210 local_bh_disable(); 1211 1211 if (!IS_ENABLED(CONFIG_PREEMPT_RT)) 1212 1212 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); 1218 1214 if (!IS_ENABLED(CONFIG_PREEMPT_RT)) 1219 1215 local_irq_enable(); 1220 1216 local_bh_enable();