drivers: base: initcall_debug logs for driver probe times
authorTodd Poynor <toddpoynor@google.com>
Thu, 21 Jun 2018 00:35:56 +0000 (17:35 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jul 2018 14:53:17 +0000 (16:53 +0200)
commit0a50f61c4fbd7840cdaf783c312e42b8ccde9ab3
tree41ae1227add777e055d09133c12ac1bfaf74bde4
parent7daf201d7fe8334e2d2364d4e8ed3394ec9af819
drivers: base: initcall_debug logs for driver probe times

Add initcall_debug logs for each driver device probe call, for example:

   probe of a3800000.ramoops returned 1 after 3007 usecs

This replaces the previous code added to report times for deferred
probes.  It also reports OF platform bus device creates that were
formerly lumped together in a single entry for function
of_platform_default_populate_init, as well as helping to annotate other
initcalls that involve device probing.

Remove restriction on printing probe times only during initcalls, since
initcall_debug now continues to show driver timing info past the boot
phase.

Signed-off-by: Todd Poynor <toddpoynor@google.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/dd.c