Spike ADSP freq. to max when app transitions to active so that ADSP
does not starve
Bug
200196267
Change-Id: I11863b2449cfecc47aefd9bc41059b634b3b2acd
Signed-off-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-on: http://git-master/r/
1154410
(cherry picked from commit
9e6163d9c1f2f07c9b4510d609aa974a75da96c7)
Reviewed-on: http://git-master/r/
1236637
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
apm_msg.msg.call_params.method = nvfx_method_set_state;
apm_msg.msg.state_params.state = state;
+ /* Spike ADSP freq to max when app transitions to active */
+ /* state; DFS will thereafter find appropriate rate */
+ if (state == nvfx_state_active)
+ adsp_override_freq(INT_MAX);
+
return tegra210_adsp_send_msg(app, &apm_msg, flags);
}