Commit-ID: 0bf43f15db857e83daf4134aa062c8b157a80ee0 Gitweb: http://git.kernel.org/tip/0bf43f15db857e83daf4134aa062c8b157a80ee0 Author: Ruchi Kandoi <kandoiruchi@xxxxxxxxxx> AuthorDate: Thu, 11 Aug 2016 14:35:01 -0700 Committer: John Stultz <john.stultz@xxxxxxxxxx> CommitDate: Wed, 31 Aug 2016 14:43:34 -0700 timekeeping: Prints the amounts of time spent during suspend In addition to keeping a histogram of suspend times, also print out the time spent in suspend to dmesg. This helps to keep track of suspend time while debugging using kernel logs. Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxxxxx> Cc: Richard Cochran <richardcochran@xxxxxxxxx> Cc: Prarit Bhargava <prarit@xxxxxxxxxx> Signed-off-by: Ruchi Kandoi <kandoiruchi@xxxxxxxxxx> [jstultz: Tweaked commit message] Signed-off-by: John Stultz <john.stultz@xxxxxxxxxx> --- 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 107310a..ca9fb80 100644 --- a/kernel/time/timekeeping_debug.c +++ b/kernel/time/timekeeping_debug.c @@ -75,5 +75,7 @@ void tk_debug_account_sleep_time(struct timespec64 *t) int bin = min(fls(t->tv_sec), NUM_BINS-1); sleep_time_bin[bin]++; + pr_info("Suspended for %lld.%03lu seconds\n", (s64)t->tv_sec, + t->tv_nsec / NSEC_PER_MSEC); } -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
![]() |