mirror of
https://github.com/LineageOS/android_kernel_samsung_msm8226.git
synced 2026-10-01 00:00:50 +02:00
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. Change-Id: I4b9719d05da020757d7cc21ed3b52b7c32261bea Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Git-commit: 55850945e872531644f31fefd217d61dd15dcab8 Git-repo: git://codeaurora.org/kernel/msm.git Signed-off-by: Anurag Singh <anursing@codeaurora.org>