]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/base/power/wakeup.c
PM / Sleep: Print name of wakeup source that aborts suspend
authorTodd Poynor <toddpoynor@google.com>
Sat, 11 Aug 2012 22:17:02 +0000 (00:17 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Fri, 17 Aug 2012 17:40:50 +0000 (19:40 +0200)
commita938da0682c2487f6aafc9a7c3caa8d675acdb38
tree9315bdea7427d9a5f4ede253f0c46be780a21d5e
parentd9875690d9b89a866022ff49e3fcea892345ad92
PM / Sleep: Print name of wakeup source that aborts suspend

A driver or app may repeatedly request a wakeup source while the system
is attempting to enter suspend, which may indicate a bug or at least
point out a highly active system component that is responsible for
decreased battery life on a mobile device.  Even when the incidence
of suspend abort is not severe, identifying wakeup sources that
frequently abort suspend can be a useful clue for power management
analysis.

In some cases the existing stats can point out the offender where there is
an unexpectedly high activation count that stands out from the others, but
in other cases the wakeup source frequently taken just after the rest of
the system thinks its time to suspend might not stand out in the overall
stats.

It is also often useful to have information about what's been happening
recently, rather than totals of all activity for the system boot.

It's suggested to dump a line about which wakeup source
aborted suspend to aid analysis of these situations.

Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/power/wakeup.c