Skip to content

Commit

Permalink
drivers: soc: perf-metrics: add pr_info for resume_latency_msec
Browse files Browse the repository at this point in the history
Bug: 232541623
Change-Id: Id5a520af232216ee77ec64b0c19d2ec1f01d36f9
Signed-off-by: Ziyi Cui <[email protected]>
  • Loading branch information
Ziyi Cui committed Nov 14, 2022
1 parent 4c338e1 commit 7d476f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/soc/google/vh/kernel/metrics.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Copyright 2022 Google LLC
*/
#define pr_fmt(fmt) "perf-metrics: " fmt
#define pr_fmt(fmt) KBUILD_MODNAME": " fmt
#include <linux/module.h>
#include <linux/init.h>
#include <linux/of.h>
Expand Down Expand Up @@ -41,12 +41,12 @@ static void vendor_hook_resume_end(void *data, void *unused)
int resume_latency_index;
s64 resume_latency_msec;
/* Exit function when partial resumes */
if (resume_latency_stats.resume_start == resume_latency_stats.resume_end) {
if (resume_latency_stats.resume_start == resume_latency_stats.resume_end)
return;
}
resume_latency_stats.resume_end = ktime_get();
resume_latency_msec = ktime_ms_delta(resume_latency_stats.resume_end,
resume_latency_stats.resume_start);
pr_info("resume latency: %lld\n", resume_latency_msec);
/* Exit function when partial resumes */
if (resume_latency_msec <= 0)
return;
Expand Down

0 comments on commit 7d476f0

Please sign in to comment.