diff options
author | Xin Xie <xxie@nvidia.com> | 2011-08-20 20:31:34 -0700 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2011-08-22 17:55:49 -0700 |
commit | 37fee87f0ee795e03ffc65170fcff7a35549e584 (patch) | |
tree | 005b2a9a4467ffc9206e782482252c2dc868b64b /kernel | |
parent | 8c2de1f6c518ab8d3ee67725b0a86cd30e7528a6 (diff) |
power: delay early_suspend for 1s
bug 857053
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>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/power/earlysuspend.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/power/earlysuspend.c b/kernel/power/earlysuspend.c index 84bed51dcdce..239f1da6e59f 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" @@ -93,6 +94,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) pos->suspend(pos); |