diff options
| author | Veera Sundaram Sankaran <veeras@codeaurora.org> | 2016-10-11 18:08:36 -0700 |
|---|---|---|
| committer | Veera Sundaram Sankaran <veeras@codeaurora.org> | 2016-10-11 18:19:38 -0700 |
| commit | e21a2b477d46b60507cda8c93f55a350d7ea4e5f (patch) | |
| tree | 74449351de420f9cc28d1be5d39f9e25cdf730eb | |
| parent | 057bdafd976ca7609ed223dbd4473d535bcb6459 (diff) | |
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>
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_dsi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/fbdev/msm/mdss_dsi.c b/drivers/video/fbdev/msm/mdss_dsi.c index c145f72c3c70..5c1c500978f0 100644 --- a/drivers/video/fbdev/msm/mdss_dsi.c +++ b/drivers/video/fbdev/msm/mdss_dsi.c @@ -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); |
