genirq: Move irq_has_action() into core code
authorThomas Gleixner <tglx@linutronix.de>
Thu, 10 Dec 2020 19:25:37 +0000 (20:25 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 15 Dec 2020 15:19:30 +0000 (16:19 +0100)
commita313357e704f2617f298333e3e617a38b1719760
tree8892748e6d35f6d6aa0a60fbc6fac6930ca5083b
parent3c41e57a1e168d879e923c5583adeae47eec9f64
genirq: Move irq_has_action() into core code

This function uses irq_to_desc() and is going to be used by modules to
replace the open coded irq_to_desc() (ab)usage. The final goal is to remove
the export of irq_to_desc() so driver cannot fiddle with it anymore.

Move it into the core code and fixup the usage sites to include the proper
header.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20201210194042.548936472@linutronix.de
arch/alpha/kernel/sys_jensen.c
arch/x86/kernel/topology.c
include/linux/interrupt.h
include/linux/irqdesc.h
kernel/irq/manage.c