mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] timekeeping: Prints the amounts of time spent during suspend
@ 2016-08-11 19:40 Ruchi Kandoi
  2016-08-11 20:05 ` kbuild test robot
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ruchi Kandoi @ 2016-08-11 19:40 UTC (permalink / raw)
  To: John Stultz, Thomas Gleixner, linux-kernel, Ruchi Kandoi, Dimitry Shmidt

This helps to keep track of real time while debugging using kernel logs.

Cc: John Stultz <john.stultz@linaro.org>
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
---
 kernel/time/timekeeping_debug.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/kernel/time/timekeeping_debug.c b/kernel/time/timekeeping_debug.c
index f6bd652..b67abe8 100644
--- a/kernel/time/timekeeping_debug.c
+++ b/kernel/time/timekeeping_debug.c
@@ -70,5 +70,7 @@ late_initcall(tk_debug_sleep_time_init);
 void tk_debug_account_sleep_time(struct timespec64 *t)
 {
 	sleep_time_bin[fls(t->tv_sec)]++;
+	pr_info("Suspended for %lu.%03lu seconds\n", t->tv_sec,
+			t->tv_nsec / NSEC_PER_MSEC);
 }
 
-- 
2.8.0.rc3.226.g39d4020

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-08-12  3:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-11 19:40 [PATCH] timekeeping: Prints the amounts of time spent during suspend Ruchi Kandoi
2016-08-11 20:05 ` kbuild test robot
2016-08-11 21:38 ` kbuild test robot
2016-08-12  3:07 ` kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®