diff options
author | Arve Hjønnevåg <arve@android.com> | 2008-10-09 21:01:46 -0700 |
---|---|---|
committer | Arve Hjønnevåg <arve@android.com> | 2010-02-03 21:27:05 -0800 |
commit | f5c158e3963c9d06bff767954ec7ce426e2ae675 (patch) | |
tree | 6eb3ab4bfc10710bd2e3040aec5f3114d513af10 /kernel/power/suspend.c | |
parent | 5f36bdf15970bf5ef97dce533ddac32d85191d6b (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.
Diffstat (limited to 'kernel/power/suspend.c')
0 files changed, 0 insertions, 0 deletions