| commit | 47dfb46bf609015a383206417c8e596df1d84017 | [log] [tgz] |
|---|---|---|
| author | Arve Hjønnevåg <arve@android.com> | Thu Oct 09 21:01:46 2008 -0700 |
| committer | Colin Cross <ccross@android.com> | Tue Jun 14 09:08:42 2011 -0700 |
| tree | 19a77e0c978ccff1b9af287d86d8feb6539f2fe7 | |
| parent | b0dc34309fc9f98de480aa383c7f6f035ce3b54a [diff] |
PM: Add user-space wake lock api. This adds /sys/power/wake_lock and /sys/power/wake_unlock. Writing a string to wake_lock creates a wake lock the first time is sees a string and locks it. Optionally, the string can be followed by a timeout. To unlock the wake lock, write the same string to wake_unlock. Change-Id: I66c6e3fe6487d17f9c2fafde1174042e57d15cd7