From: 黄涛 Date: Tue, 22 Nov 2011 09:16:38 +0000 (+0800) Subject: earlysuspend: Temporary enable debug X-Git-Tag: firefly_0821_release~9734^2~16 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9b6c7f264c2d38c93d5acac94ce9760894611a71;p=firefly-linux-kernel-4.4.55.git earlysuspend: Temporary enable debug --- diff --git a/kernel/power/earlysuspend.c b/kernel/power/earlysuspend.c index b15f02eba45c..86e14ef1898c 100644 --- a/kernel/power/earlysuspend.c +++ b/kernel/power/earlysuspend.c @@ -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)