disp: msm: sde: avoid using spinlock for register log

Add support to use atomic variable instead of spinlock
for register logs during register write. This change
helps in reducing the run-time and is safe to use as
most of the register writes happen in commit context.

Change-Id: Ib7e377f80cbf437e391792b0b424cbd1eefdf497
Signed-off-by: Yashwanth <yvulapu@codeaurora.org>
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
Cette révision appartient à :
Yashwanth
2021-02-25 14:51:36 +05:30
révisé par Samantha Tran
Parent 8b0b1d1c51
révision e57b8443cc
2 fichiers modifiés avec 5 ajouts et 11 suppressions

Voir le fichier

@@ -191,11 +191,10 @@ struct sde_dbg_reglog {
u32 first;
u32 last;
u32 last_dump;
u32 curr;
atomic64_t curr;
u32 next;
u32 enable;
u32 enable_mask;
spinlock_t spin_lock;
};
extern struct sde_dbg_reglog *sde_dbg_base_reglog;