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)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:01:30 +0000 (12:01 -0800)
commit2dc76eff327da56a1b2ec8c0563af6bde6648d2a
tree1bf8b308041281fe016ccc1613ebab539d3c01b2
parent1989f6033b3f6d8cb5ffe066e1b4c015c73360e9
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]