]> bbs.cooldavid.org Git - net-next-2.6.git/commit
PM: Make the initcall_debug style timing for suspend/resume complete
authorRafael J. Wysocki <rjw@sisk.pl>
Fri, 18 Dec 2009 00:57:31 +0000 (01:57 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Fri, 18 Dec 2009 00:57:31 +0000 (01:57 +0100)
commit875ab0b74e85d6801a49392447d26e0b28688d86
tree03762971d57d0657a12a99f1a73473878c2c7ada
parentb8a7f3cd7e8212e5c572178ff3b5a514861036a5
PM: Make the initcall_debug style timing for suspend/resume complete

Commit f2511774863487e61b56a97da07ebf8dd61d7836
(PM: Add initcall_debug style timing for suspend/resume) introduced
basic timing instrumentation, needed for a scritps/bootgraph.pl
equivalent or humans, but it missed the fact that bus types and
device classes which haven't been switched to using struct dev_pm_ops
objects yet need special handling.  As a result, the suspend/resume
timing information is only available for devices whose bus types or
device classes use struct dev_pm_ops objects, so the majority of
devices is not covered.

Fix this by adding basic suspend/resume timing instrumentation for
devices whose bus types and device classes still don't use struct
dev_pm_ops objects for power management.  To reduce code duplication
move the timing code to helper functions.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/power/main.c