提交 5417de22 编写于 作者: T Thomas Gleixner 提交者: Rafael J. Wysocki

genirq: Make use of pm misfeature accounting

Use the accounting fields which got introduced for snity checking for
the various PM options.
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 cab303be
...@@ -51,7 +51,7 @@ void irq_pm_remove_action(struct irq_desc *desc, struct irqaction *action) ...@@ -51,7 +51,7 @@ void irq_pm_remove_action(struct irq_desc *desc, struct irqaction *action)
static void suspend_device_irq(struct irq_desc *desc, int irq) static void suspend_device_irq(struct irq_desc *desc, int irq)
{ {
if (!desc->action || (desc->action->flags & IRQF_NO_SUSPEND)) if (!desc->action || desc->no_suspend_depth)
return; return;
desc->istate |= IRQS_SUSPENDED; desc->istate |= IRQS_SUSPENDED;
...@@ -94,11 +94,8 @@ static void resume_irq(struct irq_desc *desc, int irq) ...@@ -94,11 +94,8 @@ static void resume_irq(struct irq_desc *desc, int irq)
if (desc->istate & IRQS_SUSPENDED) if (desc->istate & IRQS_SUSPENDED)
goto resume; goto resume;
if (!desc->action) /* Force resume the interrupt? */
return; if (!desc->force_resume_depth)
/* Interrupts marked with that flag are force reenabled */
if (!(desc->action->flags & IRQF_FORCE_RESUME))
return; return;
/* Pretend that it got disabled ! */ /* Pretend that it got disabled ! */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册