Merge "sdm: limit mutex lock scope to update refresh variable"
diff --git a/sdm/libs/core/display_base.cpp b/sdm/libs/core/display_base.cpp
index 20b785a..45fc72c 100644
--- a/sdm/libs/core/display_base.cpp
+++ b/sdm/libs/core/display_base.cpp
@@ -4215,9 +4215,11 @@
/* this func is called by DC dimming feature only after PCC updates */
void DisplayBase::ScreenRefresh() {
- ClientLock lock(disp_mutex_);
- /* do not skip validate */
- validated_ = false;
+ {
+ ClientLock lock(disp_mutex_);
+ /* do not skip validate */
+ validated_ = false;
+ }
event_handler_->Refresh();
}