commit | 4d09c863239d323e34a8e59cc738f126d7ed3382 | [log] [tgz] |
---|---|---|
author | Arve Hjønnevåg <arve@android.com> | Thu Oct 09 21:01:46 2008 -0700 |
committer | Arve Hjønnevåg <arve@android.com> | Fri Mar 16 18:40:19 2012 -0700 |
tree | f512f92dd878e308e3d347d07e99b8e4711c0a24 | |
parent | 0b956764bfedec811fbb83c69376997977131621 [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