We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b171f71 commit 8e3f672Copy full SHA for 8e3f672
kernel/irq/manage.c
@@ -2330,15 +2330,8 @@ EXPORT_SYMBOL_GPL(irq_percpu_is_enabled);
2330
2331
void disable_percpu_irq(unsigned int irq)
2332
{
2333
- unsigned int cpu = smp_processor_id();
2334
- unsigned long flags;
2335
- struct irq_desc *desc = irq_get_desc_lock(irq, &flags, IRQ_GET_DESC_CHECK_PERCPU);
2336
-
2337
- if (!desc)
2338
- return;
2339
2340
- irq_percpu_disable(desc, cpu);
2341
- 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());
2342
}
2343
EXPORT_SYMBOL_GPL(disable_percpu_irq);
2344
0 commit comments