disp: msm: sde: use atomic operator for evt log entries

To optimize evt log entries, spinlock is been removed and
used atomic operator for curr variable, due to which there
is mismatch of count values between curr and last variable during
xlog dump in kernel. So change the last variable to atomic to
avoid race condition between entries of evt logs.

Change-Id: Idf3e2b982261d77fec97985af1e8bf740a6f6197
Signed-off-by: Ryan McCann <quic_rmccann@quicinc.com>
This commit is contained in:
Ryan McCann
2023-05-31 10:17:27 -07:00
parent a0778dcd49
commit ecb0dbed04
3 changed files with 8 additions and 8 deletions

View File

@@ -165,7 +165,7 @@ struct sde_dbg_evtlog_log {
struct sde_dbg_evtlog {
struct sde_dbg_evtlog_log logs[SDE_EVTLOG_ENTRY];
u32 first;
u32 last;
atomic_t last;
u32 last_dump;
atomic_t curr;
u32 next;