Browse Source

disp: msm: add trace logs in display early wakeup function

Add trace logs in display early wakeup function for performance
profiling.

Change-Id: I63392417f03eac60dba1c43cd71fe5032ba59ed3
Signed-off-by: Lei Chen <[email protected]>
Lei Chen 5 years ago
parent
commit
ff4f530606
1 changed files with 4 additions and 0 deletions
  1. 4 0
      msm/sde/sde_encoder.c

+ 4 - 0
msm/sde/sde_encoder.c

@@ -3695,8 +3695,10 @@ static void sde_encoder_early_wakeup_work_handler(struct kthread_work *work)
 		return;
 	}
 
+	SDE_ATRACE_BEGIN("encoder_early_wakeup");
 	sde_encoder_resource_control(&sde_enc->base,
 			SDE_ENC_RC_EVENT_EARLY_WAKEUP);
+	SDE_ATRACE_END("encoder_early_wakeup");
 }
 
 void sde_encoder_early_wakeup(struct drm_encoder *drm_enc)
@@ -3724,8 +3726,10 @@ void sde_encoder_early_wakeup(struct drm_encoder *drm_enc)
 
 	disp_thread = &priv->disp_thread[sde_enc->crtc->index];
 
+	SDE_ATRACE_BEGIN("queue_early_wakeup_work");
 	kthread_queue_work(&disp_thread->worker,
 				&sde_enc->early_wakeup_work);
+	SDE_ATRACE_END("queue_early_wakeup_work");
 }
 
 int sde_encoder_poll_line_counts(struct drm_encoder *drm_enc)