aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/power
diff options
context:
space:
mode:
authorTodd E Brandt <todd.e.brandt@linux.intel.com>2014-09-19 17:07:12 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-09-22 08:53:23 -0400
commit0cadc70282df0d957c00e8e68ba58afeefdf0f64 (patch)
tree9d49fafaa4dcfc80f1d92a5e10335030bd613a2f /kernel/power
parentacc82342f68d85d570db3e2f070255929b0284d9 (diff)
PM / sleep: new suspend_resume trace event for console resume
This patch adds another suspend_resume trace event for analyze_suspend to capture. The resume_console call can take several hundred milliseconds if the printk buffer is full of debug info. The tool will now inform testers of the wasted time and encourage them to disable it in production builds. Signed-off-by: Todd Brandt <todd.e.brandt@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel/power')
-rw-r--r--kernel/power/suspend.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/power/suspend.c b/kernel/power/suspend.c
index 18c62195660f..e837dd6783c6 100644
--- a/kernel/power/suspend.c
+++ b/kernel/power/suspend.c
@@ -361,7 +361,9 @@ int suspend_devices_and_enter(suspend_state_t state)
361 suspend_test_start(); 361 suspend_test_start();
362 dpm_resume_end(PMSG_RESUME); 362 dpm_resume_end(PMSG_RESUME);
363 suspend_test_finish("resume devices"); 363 suspend_test_finish("resume devices");
364 trace_suspend_resume(TPS("resume_console"), state, true);
364 resume_console(); 365 resume_console();
366 trace_suspend_resume(TPS("resume_console"), state, false);
365 367
366 Close: 368 Close:
367 platform_suspend_end(state); 369 platform_suspend_end(state);