android_kernel_google_msm/kernel/power
Iliyan Malchev 953a4840dd PM: extend suspend_again mechanism to use partialresume
The old platform suspend_again callback overrides drivers' votes, such that if
it implemented and returns false, then we do not call the partialresume
handlers.  When it doesn't exists or returns true, then we also query the
registered drivers for consensus.

When a device resumes from suspend, the suspend/resume code invokes
partialresume to check to see if the set of wakeup interrupts all have matching
handlers. If this is not the case, the PM subsystem can continue to resume as
before.  If all of the wakeup sources have matching handlers, then those are
invoked in turn (and can block), and if all of them reach consensus that the
reason for the wakeup can be ignored, they say so to the PM subsystem, which
goes right back into suspend.

Signed-off-by: Iliyan Malchev <malchev@google.com>
Change-Id: Iaeb9ed78c4b5fb815c6e9c701233e703f481f962
2017-10-15 17:05:08 +03:00
..
autosleep.c PM / Sleep: Add "prevent autosleep time" statistics to wakeup sources 2017-10-15 15:46:55 +03:00
block_io.c
console.c
consoleearlysuspend.c consoleearlysuspend: Fix for 2.6.32 2013-02-20 01:32:22 -08:00
earlysuspend.c PM / Sleep: Clean up remnants of workqueue-based sync 2017-10-15 15:46:58 +03:00
fbearlysuspend.c framebuffer: add a pollable sysfs entry for display status 2013-02-20 01:32:14 -08:00
hibernate.c PM / Sleep: Move disabling of usermode helpers to the freezer 2012-03-28 23:30:21 +02:00
Kconfig power: add partial-resume framework 2017-10-15 17:05:08 +03:00
main.c PM / Sleep: Fix a mistake in a conditional in autosleep_store() 2017-10-15 15:46:58 +03:00
Makefile power: add partial-resume framework 2017-10-15 17:05:08 +03:00
partialresume.c power: add partial-resume framework 2017-10-15 17:05:08 +03:00
power.h PM / Sleep: Add user space interface for manipulating wakeup sources, v3 2017-10-15 15:46:55 +03:00
poweroff.c
process.c power: log the last suspend abort reason. 2017-10-15 16:23:56 +03:00
qos.c PM / QoS: add pm_qos_update_request_timeout() API 2012-03-28 23:31:24 +02:00
snapshot.c
suspend.c PM: extend suspend_again mechanism to use partialresume 2017-10-15 17:05:08 +03:00
suspend_test.c
suspend_time.c power: Add option to log time spent in suspend 2012-04-09 13:53:09 -07:00
swap.c PM / Hibernate: fix the number of pages used for hibernate/thaw buffering 2012-04-24 23:53:28 +02:00
user.c PM / Sleep: Move disabling of usermode helpers to the freezer 2012-03-28 23:30:21 +02:00
userwakelock.c PM: Add user-space wake lock api. 2013-02-20 01:32:11 -08:00
wakelock.c PM / Sleep: User space wakeup sources garbage collector Kconfig option 2017-10-15 15:46:57 +03:00
wakeup_reason.c PM: wakeup_reason: correctly deduce wakeup interrupts 2017-10-15 17:05:07 +03:00