]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PM / Sleep: Add "prevent autosleep time" statistics to wakeup sources
authorRafael J. Wysocki <rjw@sisk.pl>
Sun, 29 Apr 2012 20:53:32 +0000 (22:53 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Sun, 29 Apr 2012 20:53:32 +0000 (22:53 +0200)
commit550c045798f4980a41b0476d978e5e6c1440b442
tree7b58c219d331c39168a3e68f012aafe17f4fbfe1
parentdc8029f53fee2e214feef484253841ced7eabd54
PM / Sleep: Add "prevent autosleep time" statistics to wakeup sources

Android uses one wakelock statistics that is only necessary for
opportunistic sleep.  Namely, the prevent_suspend_time field
accumulates the total time the given wakelock has been locked
while "automatic suspend" was enabled.  Add an analogous field,
prevent_sleep_time, to wakeup sources and make it behave in a similar
way.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-devices-power
drivers/base/power/sysfs.c
drivers/base/power/wakeup.c
include/linux/pm_wakeup.h
include/linux/suspend.h
kernel/power/autosleep.c