diff options
author | Todd Poynor <toddpoynor@google.com> | 2011-01-24 14:36:39 -0800 |
---|---|---|
committer | Brian Swetland <swetland@google.com> | 2011-03-29 13:58:03 -0700 |
commit | 0124c6088d3b9d8e1a5e4d261220be44bcc00727 (patch) | |
tree | 8379b28002658f653973563fb93f40c27c465e41 /kernel | |
parent | 0bf0a654ce46a360573ae80758e2abb52fcfe6c3 (diff) |
Print pending wakeup IRQ preventing suspend to dmesg
Change-Id: I36f90735c75fb7c7ab1084775ec0d0ab02336e6e
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/irq/pm.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kernel/irq/pm.c b/kernel/irq/pm.c index 0d4005d85b03..1df62ef4713b 100644 --- a/kernel/irq/pm.c +++ b/kernel/irq/pm.c @@ -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; } |