Skip to content

Commit aefc115

Browse files
Dr. David Alan GilbertKAGA-KOKO
authored andcommitted
genirq: Remove unused remove_percpu_irq()
remove_percpu_irq() has been unused since it was added in 2011 by commit 31d9d9b ("genirq: Add support for per-cpu dev_id interrupts") Remove it. Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/all/20250420164656.112641-1-linux@treblig.org
1 parent 1043612 commit aefc115

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

include/linux/irq.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,6 @@ enum {
597597

598598
struct irqaction;
599599
extern int setup_percpu_irq(unsigned int irq, struct irqaction *new);
600-
extern void remove_percpu_irq(unsigned int irq, struct irqaction *act);
601600

602601
#ifdef CONFIG_DEPRECATED_IRQ_CPU_ONOFFLINE
603602
extern void irq_cpu_online(void);

kernel/irq/manage.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2377,21 +2377,6 @@ static struct irqaction *__free_percpu_irq(unsigned int irq, void __percpu *dev_
23772377
return action;
23782378
}
23792379

2380-
/**
2381-
* remove_percpu_irq - free a per-cpu interrupt
2382-
* @irq: Interrupt line to free
2383-
* @act: irqaction for the interrupt
2384-
*
2385-
* Used to remove interrupts statically setup by the early boot process.
2386-
*/
2387-
void remove_percpu_irq(unsigned int irq, struct irqaction *act)
2388-
{
2389-
struct irq_desc *desc = irq_to_desc(irq);
2390-
2391-
if (desc && irq_settings_is_per_cpu_devid(desc))
2392-
__free_percpu_irq(irq, act->percpu_dev_id);
2393-
}
2394-
23952380
/**
23962381
* free_percpu_irq - free an interrupt allocated with request_percpu_irq
23972382
* @irq: Interrupt line to free

0 commit comments

Comments
 (0)