]> git.baikalelectronics.ru Git - kernel.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>
Tue, 1 May 2012 19:25:49 +0000 (21:25 +0200)
commit342a78e7ed0a77033d4d9e30a1adeb80bfe16807
tree412ee1338d0b69e4d6e2a5e518e30e6660704921
parent2460ba341f6bcbcef2e4dc8e777f3d9cfaf6c1e2
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