Skip to content

Commit dbcc728

Browse files
Marc ZyngierKAGA-KOKO
authored andcommitted
genirq: Remove setup_percpu_irq()
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
1 parent bd04dae commit dbcc728

2 files changed

Lines changed: 0 additions & 33 deletions

File tree

include/linux/irq.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -595,9 +595,6 @@ enum {
595595

596596
#define IRQ_DEFAULT_INIT_FLAGS ARCH_IRQ_INIT_FLAGS
597597

598-
struct irqaction;
599-
extern int setup_percpu_irq(unsigned int irq, struct irqaction *new);
600-
601598
#ifdef CONFIG_DEPRECATED_IRQ_CPU_ONOFFLINE
602599
extern void irq_cpu_online(void);
603600
extern void irq_cpu_offline(void);

kernel/irq/manage.c

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2448,36 +2448,6 @@ void free_percpu_nmi(unsigned int irq, void __percpu *dev_id)
24482448
kfree(__free_percpu_irq(irq, dev_id));
24492449
}
24502450

2451-
/**
2452-
* setup_percpu_irq - setup a per-cpu interrupt
2453-
* @irq: Interrupt line to setup
2454-
* @act: irqaction for the interrupt
2455-
*
2456-
* Used to statically setup per-cpu interrupts in the early boot process.
2457-
*/
2458-
int setup_percpu_irq(unsigned int irq, struct irqaction *act)
2459-
{
2460-
struct irq_desc *desc = irq_to_desc(irq);
2461-
int retval;
2462-
2463-
if (!desc || !irq_settings_is_per_cpu_devid(desc))
2464-
return -EINVAL;
2465-
2466-
retval = irq_chip_pm_get(&desc->irq_data);
2467-
if (retval < 0)
2468-
return retval;
2469-
2470-
if (!act->affinity)
2471-
act->affinity = cpu_online_mask;
2472-
2473-
retval = __setup_irq(irq, desc, act);
2474-
2475-
if (retval)
2476-
irq_chip_pm_put(&desc->irq_data);
2477-
2478-
return retval;
2479-
}
2480-
24812451
static
24822452
struct irqaction *create_percpu_irqaction(irq_handler_t handler, unsigned long flags,
24832453
const char *devname, const cpumask_t *affinity,

0 commit comments

Comments
 (0)