Commit aefc1155 authored by Dr. David Alan Gilbert's avatar Dr. David Alan Gilbert Committed by Thomas Gleixner
Browse files

genirq: Remove unused remove_percpu_irq()



remove_percpu_irq() has been unused since it was added in 2011 by
commit 31d9d9b6 ("genirq: Add support for per-cpu dev_id interrupts")

Remove it.

Signed-off-by: default avatarDr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250420164656.112641-1-linux@treblig.org
parent 10436121
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -597,7 +597,6 @@ enum {

struct irqaction;
extern int setup_percpu_irq(unsigned int irq, struct irqaction *new);
extern void remove_percpu_irq(unsigned int irq, struct irqaction *act);

#ifdef CONFIG_DEPRECATED_IRQ_CPU_ONOFFLINE
extern void irq_cpu_online(void);
+0 −15
Original line number Diff line number Diff line
@@ -2377,21 +2377,6 @@ static struct irqaction *__free_percpu_irq(unsigned int irq, void __percpu *dev_
	return action;
}

/**
 * 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