summaryrefslogtreecommitdiff
path: root/kernel/power/suspend.c
diff options
context:
space:
mode:
authorArve Hjønnevåg <arve@android.com>2008-10-09 21:01:46 -0700
committerArve Hjønnevåg <arve@android.com>2010-02-03 21:27:05 -0800
commitf5c158e3963c9d06bff767954ec7ce426e2ae675 (patch)
tree6eb3ab4bfc10710bd2e3040aec5f3114d513af10 /kernel/power/suspend.c
parent5f36bdf15970bf5ef97dce533ddac32d85191d6b (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