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)
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>

No differences found