PM / Sleep: increase ftrace coverage in suspend/resume
authorBrandt, Todd E <todd.e.brandt@intel.com>
Thu, 11 Jul 2013 07:44:35 +0000 (07:44 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 25 Jul 2013 22:49:07 +0000 (00:49 +0200)
commit3831261eb08557a1390b29c1038a0217232d8fdb
tree3cbed05a01592f727ac5a9996e77da1434b4e383
parent3b2f64d00c46e1e4e9bd0bb9bb12619adac27a4b
PM / Sleep: increase ftrace coverage in suspend/resume

Change where ftrace is disabled and re-enabled during system
suspend/resume to allow tracing of device driver pm callbacks.
Ftrace will now be turned off when suspend reaches
disable_nonboot_cpus() instead of at the very beginning of system
suspend.

Ftrace was disabled during suspend/resume back in 2008 by
Steven Rostedt as he discovered there was a conflict in the
enable_nonboot_cpus() call (see commit f42ac38 "ftrace: disable
tracing for suspend to ram").  This change preserves his fix by
disabling ftrace, but only at the function where it is known
to cause problems.

The new change allows tracing of the device level code for better
debug.

[rjw: Changelog]
Signed-off-by: Todd Brandt <todd.e.brandt@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/suspend.c
This page took 0.024876 seconds and 5 git commands to generate.