earlysuspend: Temporary enable debug
author黄涛 <huangtao@rock-chips.com>
Tue, 22 Nov 2011 09:16:38 +0000 (17:16 +0800)
committer黄涛 <huangtao@rock-chips.com>
Tue, 22 Nov 2011 09:17:13 +0000 (17:17 +0800)
kernel/power/earlysuspend.c

index b15f02eba45cb7cc2d5f2bb6854a94124f6967cb..86e14ef1898c26045b644d8307f2e70bc0f86781 100644 (file)
@@ -28,7 +28,7 @@ enum {
        DEBUG_SUSPEND = 1U << 2,
        DEBUG_VERBOSE = 1U << 3,
 };
-static int debug_mask = DEBUG_USER_STATE;
+static int debug_mask = DEBUG_USER_STATE | DEBUG_SUSPEND | DEBUG_VERBOSE;
 module_param_named(debug_mask, debug_mask, int, S_IRUGO | S_IWUSR | S_IWGRP);
 
 static DEFINE_MUTEX(early_suspend_lock);
@@ -107,6 +107,8 @@ static void early_suspend(struct work_struct *work)
                pr_info("early_suspend: sync\n");
 
        sys_sync();
+       if (debug_mask & DEBUG_SUSPEND)
+               pr_info("early_suspend: done\n");
 abort:
        spin_lock_irqsave(&state_lock, irqflags);
        if (state == SUSPEND_REQUESTED_AND_SUSPENDED)