OSDN Git Service

kernel: power: suspend: fix resume issue
authorKyle Evans <kevans@android-x86.org>
Tue, 27 Dec 2011 17:46:50 +0000 (12:46 -0500)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 25 Jun 2012 13:03:44 +0000 (21:03 +0800)
kernel/power/suspend.c

index 61e6347..33857d8 100644 (file)
@@ -250,6 +250,9 @@ int suspend_devices_and_enter(suspend_state_t state)
  */
 static void suspend_finish(void)
 {
+#ifdef CONFIG_EARLYSUSPEND
+       request_suspend_state(PM_SUSPEND_ON);
+#endif
        suspend_thaw_processes();
        usermodehelper_enable();
        pm_notifier_call_chain(PM_POST_SUSPEND);