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 <lkalaval@codeaurora.org>
This commit is contained in:
Lakshmi Narayana Kalavala
2019-05-22 14:18:41 -07:00
父節點 5af1fe1891
當前提交 5fd0d8d44b

查看文件

@@ -12,6 +12,7 @@
#include <linux/uaccess.h>
#include <linux/dma-buf.h>
#include <linux/slab.h>
#include <linux/sched/clock.h>
#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;