PM / core: Simplify initcall_debug_report() timing
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 26 Apr 2018 21:36:34 +0000 (16:36 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 10 May 2018 09:31:45 +0000 (11:31 +0200)
commit143711f0110637239f045a179e726b137b7caf59
treeca58bdce1294b0291d412f1861584c94ca05db44
parent147f297965533f500fa1e5617d70f76ed56db5cc
PM / core: Simplify initcall_debug_report() timing

initcall_debug_report() always called ktime_get(), even if we didn't
need the result.

Change it so we only call it when we're going to use the result, and
change initcall_debug_start() to follow the same style.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/main.c