PM: sleep: Use ktime_us_delta() in initcall_debug_report()
authorMark-PK Tsai <mark-pk.tsai@mediatek.com>
Thu, 1 Jul 2021 00:45:38 +0000 (08:45 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 1 Jul 2021 16:44:02 +0000 (18:44 +0200)
commit75674eb06a28816af2a7331dcee4088cc1ab5f6d
tree8fb4b9a60e5320443fe4bd7d61a1764ddacbba42
parent3563f55ce65462063543dfa6a8d8c7fbfb9d7772
PM: sleep: Use ktime_us_delta() in initcall_debug_report()

Use ktime_us_delta() to make the debug log more precise instead of
shifting the return value of ktime_to_ns() applied to a ktime_sub()
result by 10 bit positions to the right.

Signed-off-by: Mark-PK Tsai <mark-pk.tsai@mediatek.com>
[ rjw: Changelog rewrite, subject edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/main.c