From: Ruchi Kandoi <kandoiruchi@google.com>
To: John Stultz <john.stultz@linaro.org>,
Thomas Gleixner <tglx@linutronix.de>,
linux-kernel@vger.kernel.org,
Ruchi Kandoi <kandoiruchi@google.com>,
Dimitry Shmidt <dimitrysh@google.com>
Subject: [PATCH] timekeeping: Prints the amounts of time spent during suspend
Date: Thu, 11 Aug 2016 12:40:41 -0700 [thread overview]
Message-ID: <1470944441-2672-1-git-send-email-kandoiruchi@google.com> (raw)
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
next reply other threads:[~2016-08-11 19:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-11 19:40 Ruchi Kandoi [this message]
2016-08-11 20:05 ` [PATCH] timekeeping: Prints the amounts of time spent during suspend kbuild test robot
2016-08-11 21:38 ` kbuild test robot
2016-08-12 3:07 ` kbuild test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1470944441-2672-1-git-send-email-kandoiruchi@google.com \
--to=kandoiruchi@google.com \
--cc=dimitrysh@google.com \
--cc=john.stultz@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.