]> asedeno.scripts.mit.edu Git - linux.git/commit
PM / timekeeping: Print debug messages when requested
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 22 Jul 2017 22:03:43 +0000 (00:03 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 22 Jul 2017 22:03:43 +0000 (00:03 +0200)
commitcb08e0353c249a27aed10c6f60a13871ae449d33
tree1f0a5ea686df33423b364a98cc692d94b86676ab
parent8915aa2042f85ecf86d4a202ef6d04bf06f05cca
PM / timekeeping: Print debug messages when requested

The messages printed by tk_debug_account_sleep_time() are basically
useful for system sleep debugging, so print them only when the other
debug messages from the core suspend/hibernate code are enabled.

While at it, make it clear that the messages from
tk_debug_account_sleep_time() are about timekeeping suspend
duration, because in general timekeeping may be suspeded and
resumed for multiple times during one system suspend-resume cycle.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/linux/suspend.h
kernel/power/main.c
kernel/time/timekeeping_debug.c