]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
genirq: Remove setup_percpu_irq()
authorMarc Zyngier <maz@kernel.org>
Wed, 10 Dec 2025 08:22:42 +0000 (08:22 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 15 Dec 2025 21:20:51 +0000 (22:20 +0100)
setup_percpu_irq() was always a bad kludge, and should have never
been there the first place. Now that the last users are gone,
remove it for good.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://patch.msgid.link/20251210082242.360936-7-maz@kernel.org
include/linux/irq.h
kernel/irq/manage.c

index 4a9f1d7b08c3902a8c49b1cbb75e38ef9377cf89..67ea759749beb9275c4ac7bff0ccdbedb919da4b 100644 (file)
@@ -595,9 +595,6 @@ enum {
 
 #define IRQ_DEFAULT_INIT_FLAGS ARCH_IRQ_INIT_FLAGS
 
-struct irqaction;
-extern int setup_percpu_irq(unsigned int irq, struct irqaction *new);
-
 #ifdef CONFIG_DEPRECATED_IRQ_CPU_ONOFFLINE
 extern void irq_cpu_online(void);
 extern void irq_cpu_offline(void);
index 4d0b3264271693cdbff9691ea8c10d85cff2c74b..bc2d36b6b13b0fdfb9f2d7b8e92ecf91dba76c25 100644 (file)
@@ -2448,36 +2448,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;
-
-       if (!act->affinity)
-               act->affinity = cpu_online_mask;
-
-       retval = __setup_irq(irq, desc, act);
-
-       if (retval)
-               irq_chip_pm_put(&desc->irq_data);
-
-       return retval;
-}
-
 static
 struct irqaction *create_percpu_irqaction(irq_handler_t handler, unsigned long flags,
                                          const char *devname, const cpumask_t *affinity,