aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/power/Kconfig
diff options
context:
space:
mode:
authorRebecca Schultz <rschultz@google.com>2008-07-17 18:14:55 -0700
committerColin Cross <ccross@android.com>2011-06-14 09:08:43 -0700
commit4b0ea27fc8202b21ce338c82b55eee9c281bd7da (patch)
treea4527ae113321bc7a55d316183435ad38ccfabc6 /kernel/power/Kconfig
parentb28a6a111c2c4779f92f310cfefe10606df4999f (diff)
downloadkernel_samsung_espresso10-4b0ea27fc8202b21ce338c82b55eee9c281bd7da.tar.gz
kernel_samsung_espresso10-4b0ea27fc8202b21ce338c82b55eee9c281bd7da.tar.bz2
kernel_samsung_espresso10-4b0ea27fc8202b21ce338c82b55eee9c281bd7da.zip
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>
Diffstat (limited to 'kernel/power/Kconfig')
-rw-r--r--kernel/power/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig
index 625d65318ed..a70f6c82063 100644
--- a/kernel/power/Kconfig
+++ b/kernel/power/Kconfig
@@ -61,6 +61,7 @@ config EARLYSUSPEND
choice
prompt "User-space screen access"
+ default FB_EARLYSUSPEND if !FRAMEBUFFER_CONSOLE
default CONSOLE_EARLYSUSPEND
depends on HAS_EARLYSUSPEND
@@ -74,6 +75,14 @@ choice
Register early suspend handler to perform a console switch to
when user-space should stop drawing to the screen and a switch
back when it should resume.
+
+ config FB_EARLYSUSPEND
+ bool "Sysfs interface"
+ depends on HAS_EARLYSUSPEND
+ ---help---
+ Register early suspend handler that notifies and waits for
+ user-space through sysfs when user-space should stop drawing
+ to the screen and notifies user-space when it should resume.
endchoice
config HIBERNATE_CALLBACKS