genirq/manage: Rework disable_percpu_irq()
Use the new guards to get and lock the interrupt descriptor and tidy up the code. No functional change. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/all/20250429065422.435932527@linutronix.depull/1250/head
parent
b171f712d6
commit
8e3f672b19
|
|
@ -2330,15 +2330,8 @@ EXPORT_SYMBOL_GPL(irq_percpu_is_enabled);
|
|||
|
||||
void disable_percpu_irq(unsigned int irq)
|
||||
{
|
||||
unsigned int cpu = smp_processor_id();
|
||||
unsigned long flags;
|
||||
struct irq_desc *desc = irq_get_desc_lock(irq, &flags, IRQ_GET_DESC_CHECK_PERCPU);
|
||||
|
||||
if (!desc)
|
||||
return;
|
||||
|
||||
irq_percpu_disable(desc, cpu);
|
||||
irq_put_desc_unlock(desc, flags);
|
||||
scoped_irqdesc_get_and_lock(irq, IRQ_GET_DESC_CHECK_PERCPU)
|
||||
irq_percpu_disable(scoped_irqdesc, smp_processor_id());
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(disable_percpu_irq);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue