From 101904dc5c63e91d795a588ea23e8b21395ebdb0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Sat, 30 Jul 2011 23:04:39 +0800 Subject: [PATCH] temp revert earlysuspend change --- kernel/power/earlysuspend.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/kernel/power/earlysuspend.c b/kernel/power/earlysuspend.c index d76c496d773d..84bed51dcdce 100644 --- a/kernel/power/earlysuspend.c +++ b/kernel/power/earlysuspend.c @@ -20,7 +20,6 @@ #include /* sys_sync */ #include #include -#include #include "power.h" @@ -28,11 +27,7 @@ enum { DEBUG_USER_STATE = 1U << 0, DEBUG_SUSPEND = 1U << 2, }; -#ifdef DEBUG -static int debug_mask = DEBUG_USER_STATE | DEBUG_SUSPEND; -#else static int debug_mask = DEBUG_USER_STATE; -#endif module_param_named(debug_mask, debug_mask, int, S_IRUGO | S_IWUSR | S_IWGRP); static DEFINE_MUTEX(early_suspend_lock); @@ -99,8 +94,6 @@ static void early_suspend(struct work_struct *work) if (debug_mask & DEBUG_SUSPEND) pr_info("early_suspend: call handlers\n"); list_for_each_entry(pos, &early_suspend_handlers, link) { - if (debug_mask & DEBUG_SUSPEND) - print_symbol("early_suspend: call %s\n", (unsigned long)pos->suspend); if (pos->suspend != NULL) pos->suspend(pos); } @@ -138,12 +131,9 @@ static void late_resume(struct work_struct *work) } if (debug_mask & DEBUG_SUSPEND) pr_info("late_resume: call handlers\n"); - list_for_each_entry_reverse(pos, &early_suspend_handlers, link) { - if (debug_mask & DEBUG_SUSPEND) - print_symbol("late_resume: call %s\n", (unsigned long)pos->resume); + list_for_each_entry_reverse(pos, &early_suspend_handlers, link) if (pos->resume != NULL) pos->resume(pos); - } if (debug_mask & DEBUG_SUSPEND) pr_info("late_resume: done\n"); abort: -- 2.34.1