msm: mdss: add atraces to track switch cmd delays

Add atraces to track the switch commands executed during
dynamic resolution switch or dynamic cmd/video mode switch.
This information would be helpful in isolating the panel
dependent switch cmds delays from the actual time needed by
MDSS driver to execute the switch.

Change-Id: Id9ac196fcdc61e95b5191103a1ea7974978b3a93
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
This commit is contained in:
Veera Sundaram Sankaran 2016-10-11 18:08:36 -07:00
parent 057bdafd97
commit e21a2b477d

View file

@ -1278,7 +1278,11 @@ int mdss_dsi_switch_mode(struct mdss_panel_data *pdata, int mode)
MDSS_DSI_ALL_CLKS, MDSS_DSI_CLK_ON);
if (dsi_ctrl_setup_needed)
mdss_dsi_ctrl_setup(ctrl_pdata);
ATRACE_BEGIN("switch_cmds");
ctrl_pdata->switch_mode(pdata, mode);
ATRACE_END("switch_cmds");
mdss_dsi_clk_ctrl(ctrl_pdata, ctrl_pdata->dsi_clk_handle,
MDSS_DSI_ALL_CLKS, MDSS_DSI_CLK_OFF);