diff options
author | Arjan van de Ven <arjan@infradead.org> | 2009-12-13 20:29:01 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2009-12-15 20:42:06 +0100 |
commit | f2511774863487e61b56a97da07ebf8dd61d7836 (patch) | |
tree | 892a238299f4e69e120b037310623e4bae5b690f /include | |
parent | 1d531c14d2ed4b24472a4d773f00ed6d1cd34ee7 (diff) | |
download | linux-f2511774863487e61b56a97da07ebf8dd61d7836.tar.gz linux-f2511774863487e61b56a97da07ebf8dd61d7836.tar.bz2 linux-f2511774863487e61b56a97da07ebf8dd61d7836.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/init.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/init.h b/include/linux/init.h index ff8bde520d03..ab1d31f9352b 100644 --- a/include/linux/init.h +++ b/include/linux/init.h @@ -149,6 +149,8 @@ void prepare_namespace(void); extern void (*late_time_init)(void); +extern int initcall_debug; + #endif #ifndef MODULE |