summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorXin Xie <xxie@nvidia.com>2011-08-20 20:31:34 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:52:22 -0800
commit8d00eca1bfa1a21096e17e7c5abb774462af4268 (patch)
treead0bc95ee9ae18e78faf1e1752bd8950d7b85d6e /kernel
parentad298a037f551fb29fa09be74fb6e2b04e38c256 (diff)
power: delay early_suspend for 1s
bug 857053 Original-Change-Id: I9ae35026009d2a73e253386661902004d99a25c9 Reviewed-on: http://git-master/r/48349 Reviewed-by: Xin Xie <xxie@nvidia.com> Tested-by: Xin Xie <xxie@nvidia.com> Reviewed-by: Daniel Solomon <daniels@nvidia.com> Tested-by: Daniel Solomon <daniels@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Rebase-Id: Rc7feea74d63f9e4a34694e98e3d6e7a92add3421
Diffstat (limited to 'kernel')
-rw-r--r--kernel/power/earlysuspend.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/power/earlysuspend.c b/kernel/power/earlysuspend.c
index b15f02eba45c..9baa87ddd818 100644
--- a/kernel/power/earlysuspend.c
+++ b/kernel/power/earlysuspend.c
@@ -20,6 +20,7 @@
#include <linux/syscalls.h> /* sys_sync */
#include <linux/wakelock.h>
#include <linux/workqueue.h>
+#include <linux/delay.h>
#include "power.h"
@@ -94,6 +95,7 @@ static void early_suspend(struct work_struct *work)
if (debug_mask & DEBUG_SUSPEND)
pr_info("early_suspend: call handlers\n");
+ msleep(1000);
list_for_each_entry(pos, &early_suspend_handlers, link) {
if (pos->suspend != NULL) {
if (debug_mask & DEBUG_VERBOSE)