PM / sleep: trace_device_pm_callback coverage in dpm_prepare/complete
authorTodd E Brandt <todd.e.brandt@linux.intel.com>
Thu, 28 May 2015 19:55:53 +0000 (12:55 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 10 Jun 2015 00:24:49 +0000 (02:24 +0200)
commit32e8d689dc12e29fcb6ba9c65a33473d0cbdfec8
tree365a043cb36d98d8f675e4d9bfa4be58ca02fcd8
parent7f436055cb0c0e17c430fb81197b42e20c2e812c
PM / sleep: trace_device_pm_callback coverage in dpm_prepare/complete

Move the trace_device_pm_callback locations for dpm_prepare and dpm_complete
to encompass the attempt to capture the device mutex prior to callback. This
is needed by analyze_suspend to identify gaps in the trace output caused by
the delay in locking the mutex for a device.

Signed-off-by: Todd Brandt <todd.e.brandt@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/main.c