]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd89e9655b219c08b27b5d279a8fa88f28401046d
tree8fb4b9a60e5320443fe4bd7d61a1764ddacbba42
parent25774679ad50b98b11f9b66460f874caf5980205
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