disp: msm: optimize devcoredump read operation duration

Set a flag to avoid multiple reading of sde_dbg info, that
reduces devcoredump reading time.

Change-Id: I83f77dea35bb818d51b0982124a54ffeef7db8af
Signed-off-by: Bruce Hoo <quic_bingchua@quicinc.com>
This commit is contained in:
Bruce Hoo
2022-03-08 12:54:16 +08:00
والد 231eb36b84
کامیت 522b0cee4c
2فایلهای تغییر یافته به همراه41 افزوده شده و 9 حذف شده

مشاهده پرونده

@@ -217,7 +217,7 @@ u32 sde_evtlog_count(struct sde_dbg_evtlog *evtlog)
last_dump += SDE_EVTLOG_ENTRY;
}
if ((last_dump - first) > SDE_EVTLOG_PRINT_ENTRY)
if ((last_dump - first) > SDE_EVTLOG_ENTRY)
return SDE_EVTLOG_ENTRY;
return last_dump - first;