PM: earlysuspend: Removing dependence on console.
[firefly-linux-kernel-4.4.55.git] / kernel / power / Kconfig
index 3b3910f11825013c74e10a827d31c51e00cc04ce..1621b707647e76b716d617962464c8de549d7a91 100644 (file)
@@ -162,6 +162,7 @@ config EARLYSUSPEND
 
 choice
        prompt "User-space screen access"
+       default FB_EARLYSUSPEND if !FRAMEBUFFER_CONSOLE
        default CONSOLE_EARLYSUSPEND
        depends on HAS_EARLYSUSPEND
 
@@ -175,6 +176,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 HIBERNATION