OSDN Git Service

PM: earlysuspend: Removing dependence on console.
authorRebecca Schultz <rschultz@google.com>
Fri, 18 Jul 2008 01:14:55 +0000 (18:14 -0700)
committerIliyan Malchev <malchev@google.com>
Mon, 23 May 2011 22:41:58 +0000 (15:41 -0700)
commitbdb8de244a8f4896f72d2c57adad2413ddf8a62b
treed5e02637a6613b50ac1cfc08eb00fced8581717d
parent4657746ba7d85a6b486f562fba4777552a328b2f
PM: earlysuspend: Removing dependence on console.

Rather than signaling a full update of the display from userspace via a
console switch, this patch introduces 2 files int /sys/power,
wait_for_fb_sleep and wait_for_fb_wake.  Reading these files will block
until the requested state has been entered.  When a read from
wait_for_fb_sleep returns userspace should stop drawing.  When
wait_for_fb_wake returns, it should do a full update.  If either are called
when the fb driver is already in the requested state, they will return
immediately.

Signed-off-by: Rebecca Schultz <rschultz@google.com>
Signed-off-by: Arve Hjønnevåg <arve@android.com>
kernel/power/Kconfig
kernel/power/Makefile
kernel/power/fbearlysuspend.c [new file with mode: 0644]