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)
committerColin Cross <ccross@android.com>
Thu, 30 Sep 2010 00:49:07 +0000 (17:49 -0700)
commit507fedc71561e41a09d057f9b3c474b9738fb7db
tree1bdcc1b4bb545cd957c5412d6dd4834bbb49ec7a
parentf104aa02b88eba92dfc9bfe377aa26cc1e94c8d0
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]