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)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 23 Jul 2012 08:38:08 +0000 (13:38 +0530)
commite86d6171cfe47cee7ea6a53465bfd221ed3d9dfa
tree68f695e2ba5091f3c0bb9543390d4ed7ff117d21
parentc968c1d9df7e9d16aafa57607ddabe2b92e17933
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