summaryrefslogtreecommitdiffstats
path: root/libsuspend/autosuspend_earlysuspend.c
Commit message (Collapse)AuthorAgeFilesLines
* libsuspend: wait for earlysuspend transition to finishColin Cross2012-06-141-2/+40
| | | | | | | | | Wait for the early suspend transition to finish to the point where surfaceflinger would previously have synchronized. This is important during screen on, to ensure the display early suspend handlers have completed before surfaceflinger unblanks. Change-Id: I91ac0253d9655c3f1ae3dd7f1a918c279568b23e
* libsuspend: always unblock early suspendColin Cross2012-06-071-4/+80
| | | | | | | | | SurfaceFlinger and PowerManagerService manage their synchronization without the help of early suspend, and SurfaceFlinger no longer unblocks early suspend. Add a new thread when early suspend is detected that will immediately unblock early suspend. Change-Id: I87ef4984a2ab34cbbb3af8b7762236b9a92dc2ea
* libsuspend: create new library to handle triggering suspendColin Cross2012-05-071-0/+113
libsuspend provides functions autosuspend_enable() and autosuspend_disable() to trigger suspend on a variety of different kernels. Change-Id: I5dc28fb51532fa7c514330f1cfde7698d31d734c