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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user