diff options
author | Bernie Thompson <bhthompson@chromium.org> | 2013-05-31 20:47:43 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-06-11 17:53:37 -0400 |
commit | 9350de06be45a5a8b927ac6577c9d35de61c90ca (patch) | |
tree | ad2b68e1cfc2796fb355937a9347b4d6b3acdeb6 /drivers | |
parent | 43d51af489126305dbacc1b8ebd1ce4797d277ea (diff) |
PM / wakeup: Adjust messaging for wake events during suspend
This adds in a new message to the wakeup code which adds an
indication to the log that suspend was cancelled due to a wake event
occouring during the suspend sequence. It also adjusts the message
printed in suspend.c to reflect the potential that a suspend was
aborted, as opposed to a device failing to suspend.
Without these message adjustments one can end up with a kernel log
that says that a device failed to suspend with no actual device
suspend failures, which can be confusing to the log examiner.
Signed-off-by: Bernie Thompson <bhthompson@chromium.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/base/power/wakeup.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/base/power/wakeup.c b/drivers/base/power/wakeup.c index 79715e7fa43e..407a2efa10bb 100644 --- a/drivers/base/power/wakeup.c +++ b/drivers/base/power/wakeup.c | |||
@@ -707,8 +707,10 @@ bool pm_wakeup_pending(void) | |||
707 | } | 707 | } |
708 | spin_unlock_irqrestore(&events_lock, flags); | 708 | spin_unlock_irqrestore(&events_lock, flags); |
709 | 709 | ||
710 | if (ret) | 710 | if (ret) { |
711 | pr_info("PM: Wakeup pending, aborting suspend\n"); | ||
711 | print_active_wakeup_sources(); | 712 | print_active_wakeup_sources(); |
713 | } | ||
712 | 714 | ||
713 | return ret; | 715 | return ret; |
714 | } | 716 | } |