Skip to content

Commit

Permalink
Print pending wakeup IRQ preventing suspend to dmesg
Browse files Browse the repository at this point in the history
  • Loading branch information
toddpoynor authored and codeworkx committed Oct 9, 2011
1 parent e98cb83 commit 2d36caa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kernel/irq/pm.c
Expand Up @@ -72,8 +72,12 @@ int check_wakeup_irqs(void)
int irq;

for_each_irq_desc(irq, desc)
if ((desc->status & IRQ_WAKEUP) && (desc->status & IRQ_PENDING))
if ((desc->status & IRQ_WAKEUP) &&
(desc->status & IRQ_PENDING)) {
pr_info("Wakeup IRQ %d %s pending, suspend aborted\n",
irq, desc->name ? desc->name : "");
return -EBUSY;
}

return 0;
}

0 comments on commit 2d36caa

Please sign in to comment.