From 5fd0d8d44bd9f7d6d3d67c442df3982196d5eb9c Mon Sep 17 00:00:00 2001 From: Lakshmi Narayana Kalavala Date: Wed, 22 May 2019 14:18:41 -0700 Subject: [PATCH] disp: msm: sde: use local_clock in sde event log The display driver uses ktime_to_us to timestamp the messages in the sde event log. But the kernel logs use local_clock to timestamp the messages. Using same timestamp routine in sde event log helps to correlate the messages from both the logs for debug purpose. Change-Id: Id94e03ba21f82e2162e4ef4290c10d2d09110d4c Signed-off-by: Lakshmi Narayana Kalavala --- msm/sde_dbg_evtlog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/msm/sde_dbg_evtlog.c b/msm/sde_dbg_evtlog.c index 64918367d771..4ea43ff46f6b 100644 --- a/msm/sde_dbg_evtlog.c +++ b/msm/sde_dbg_evtlog.c @@ -12,6 +12,7 @@ #include #include #include +#include #include "sde_dbg.h" #include "sde_trace.h" @@ -74,7 +75,7 @@ void sde_evtlog_log(struct sde_dbg_evtlog *evtlog, const char *name, int line, goto exit; log = &evtlog->logs[evtlog->curr]; - log->time = ktime_to_us(ktime_get()); + log->time = local_clock(); log->name = name; log->line = line; log->data_cnt = 0;