Messages in this thread Patch in this message | | | Date | Sat, 11 Apr 2020 21:35:16 +0530 | From | afzal mohammed <> | Subject | [PATCH 3/3] genirq: Remove setup_percpu_irq() and remove_percpu_irq() |
| |
Only users of setup_percpu_irq() were in MIPS, they have been converted to use request_percpu_irq() variants. Also remove_percpu_irq() have no users.
Hence remove setup_percpu_irq() as well as remove_percpu_irq().
Signed-off-by: afzal mohammed <afzal.mohd.ma@gmail.com> --- include/linux/irq.h | 2 -- kernel/irq/manage.c | 42 ------------------------------------------ 2 files changed, 44 deletions(-)
diff --git a/include/linux/irq.h b/include/linux/irq.h index 29f5bad87eb3..156995ab5d6e 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h @@ -560,8 +560,6 @@ enum { #define IRQ_DEFAULT_INIT_FLAGS ARCH_IRQ_INIT_FLAGS struct irqaction; -extern int setup_percpu_irq(unsigned int irq, struct irqaction *new); -extern void remove_percpu_irq(unsigned int irq, struct irqaction *act); extern void irq_cpu_online(void); extern void irq_cpu_offline(void); diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index aa03b64605d3..22aaa6895c42 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c @@ -2324,21 +2324,6 @@ static struct irqaction *__free_percpu_irq(unsigned int irq, void __percpu *dev_ return NULL; } -/** - * remove_percpu_irq - free a per-cpu interrupt - * @irq: Interrupt line to free - * @act: irqaction for the interrupt - * - * Used to remove interrupts statically setup by the early boot process. - */ -void remove_percpu_irq(unsigned int irq, struct irqaction *act) -{ - struct irq_desc *desc = irq_to_desc(irq); - - if (desc && irq_settings_is_per_cpu_devid(desc)) - __free_percpu_irq(irq, act->percpu_dev_id); -} - /** * free_percpu_irq - free an interrupt allocated with request_percpu_irq * @irq: Interrupt line to free @@ -2377,33 +2362,6 @@ void free_percpu_nmi(unsigned int irq, void __percpu *dev_id) kfree(__free_percpu_irq(irq, dev_id)); } -/** - * setup_percpu_irq - setup a per-cpu interrupt - * @irq: Interrupt line to setup - * @act: irqaction for the interrupt - * - * Used to statically setup per-cpu interrupts in the early boot process. - */ -int setup_percpu_irq(unsigned int irq, struct irqaction *act) -{ - struct irq_desc *desc = irq_to_desc(irq); - int retval; - - if (!desc || !irq_settings_is_per_cpu_devid(desc)) - return -EINVAL; - - retval = irq_chip_pm_get(&desc->irq_data); - if (retval < 0) - return retval; - - retval = __setup_irq(irq, desc, act); - - if (retval) - irq_chip_pm_put(&desc->irq_data); - - return retval; -} - /** * __request_percpu_irq - allocate a percpu interrupt line * @irq: Interrupt line to allocate -- 2.18.0
| |