Skip to content

Commit

Permalink
genirq: Make use of pm misfeature accounting
Browse files Browse the repository at this point in the history
Use the accounting fields which got introduced for snity checking for
the various PM options.

Signed-off-by: Thomas Gleixner <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
  • Loading branch information
KAGA-KOKO authored and rafaeljw committed Sep 1, 2014
1 parent cab303b commit 5417de2
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions kernel/irq/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
if (!desc->action || (desc->action->flags & IRQF_NO_SUSPEND))
if (!desc->action || desc->no_suspend_depth)
return;

desc->istate |= IRQS_SUSPENDED;
Expand Down Expand Up @@ -94,11 +94,8 @@ static void resume_irq(struct irq_desc *desc, int irq)
if (desc->istate & IRQS_SUSPENDED)
goto resume;

if (!desc->action)
return;

/* Interrupts marked with that flag are force reenabled */
if (!(desc->action->flags & IRQF_FORCE_RESUME))
/* Force resume the interrupt? */
if (!desc->force_resume_depth)
return;

/* Pretend that it got disabled ! */
Expand Down

0 comments on commit 5417de2

Please sign in to comment.