From: 黄涛 Date: Wed, 7 Dec 2011 01:31:13 +0000 (+0800) Subject: Revert "earlysuspend: Temporary enable debug" X-Git-Tag: firefly_0821_release~9720 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=901836f4a798eb81d28a208f9195ea1bc9316ee0;p=firefly-linux-kernel-4.4.55.git Revert "earlysuspend: Temporary enable debug" This reverts commit 9b6c7f264c2d38c93d5acac94ce9760894611a71. Disable earlysuspend debug for release. --- diff --git a/kernel/power/earlysuspend.c b/kernel/power/earlysuspend.c index 86e14ef1898c..b15f02eba45c 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 | DEBUG_SUSPEND | DEBUG_VERBOSE; +static int debug_mask = DEBUG_USER_STATE; module_param_named(debug_mask, debug_mask, int, S_IRUGO | S_IWUSR | S_IWGRP); static DEFINE_MUTEX(early_suspend_lock); @@ -107,8 +107,6 @@ 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)