分类: Android平台
2014-02-24 16:17:07
1, 加入如下代码,重新build kernel
2,在uboot启动参数中加入 no_console_suspend
diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c
index 77e3b97..2626881 100644
--- a/drivers/base/power/main.c
+++ b/drivers/base/power/main.c
@@ -746,6 +746,8 @@ void dpm_resume(pm_message_t state)
while (!list_empty(&dpm_suspended_list)) {
dev = to_device(dpm_suspended_list.next);
+ if (dev->driver)
+ printk("before resume device: %s\n", dev->driver->name);
get_device(dev);
if (!is_async(dev)) {
int error;
@@ -753,6 +755,8 @@ void dpm_resume(pm_message_t state)
mutex_unlock(&dpm_list_mtx);
error = device_resume(dev, state, false);
+ if (dev->driver)
+ printk("after resume device: %s\n", dev->driver->name);
if (error) {
suspend_stats.failed_resume++;
dpm_save_failed_step(SUSPEND_RESUME);