OSDN Git Service

PM: Add user-space wake lock api.
authorArve Hjønnevåg <arve@android.com>
Fri, 10 Oct 2008 04:01:46 +0000 (21:01 -0700)
committerIliyan Malchev <malchev@google.com>
Mon, 23 May 2011 22:41:25 +0000 (15:41 -0700)
commit8c59aa97212933ae3ec4e134e92ea0097174c83f
treec6af0a03abe9a5ecab10a72017ad2b05119d5600
parent3c844e720fae8bf91df37b20d15907eb0e845e8f
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
kernel/power/Kconfig
kernel/power/Makefile
kernel/power/main.c
kernel/power/power.h
kernel/power/userwakelock.c [new file with mode: 0644]