PM: Add initcall_debug style timing for suspend/resume
authorArjan van de Ven <arjan@infradead.org>
Sun, 13 Dec 2009 19:29:01 +0000 (20:29 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Tue, 15 Dec 2009 19:42:06 +0000 (20:42 +0100)
commitf2511774863487e61b56a97da07ebf8dd61d7836
tree892a238299f4e69e120b037310623e4bae5b690f
parent1d531c14d2ed4b24472a4d773f00ed6d1cd34ee7
PM: Add initcall_debug style timing for suspend/resume

In order to diagnose overall suspend/resume times, we need
basic instrumentation to break down the total time into per
device timing, similar to initcall_debug.

This patch adds the basic timing instrumentation, needed
for a scritps/bootgraph.pl equivalent or humans.
The bootgraph.pl program is still a work in progress, but
is far enough along to know that this patch is sufficient.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/power/main.c
include/linux/init.h