PM: Implement early suspend api
diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig
index 1c04e80..41bd5bd 100644
--- a/kernel/power/Kconfig
+++ b/kernel/power/Kconfig
@@ -21,6 +21,9 @@
 config HAS_WAKELOCK
 	bool
 
+config HAS_EARLYSUSPEND
+	bool
+
 config WAKELOCK
 	bool "Wake lock"
 	depends on PM && RTC_CLASS
@@ -37,6 +40,15 @@
 	---help---
 	  Report wake lock stats in /proc/wakelocks
 
+config EARLYSUSPEND
+	bool "Early suspend"
+	depends on WAKELOCK
+	default y
+	select HAS_EARLYSUSPEND
+	---help---
+	  Call early suspend handlers when the user requested sleep state
+	  changes.
+
 config HIBERNATE_CALLBACKS
 	bool