mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
tegra: adsp: Max ADSP clock at APM active
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>
This commit is contained in:
committed by
Sameer Pujar
parent
a304847e65
commit
efd1112f5c
@@ -647,6 +647,11 @@ static int tegra210_adsp_send_state_msg(struct tegra210_adsp_app *app,
|
|||||||
apm_msg.msg.call_params.method = nvfx_method_set_state;
|
apm_msg.msg.call_params.method = nvfx_method_set_state;
|
||||||
apm_msg.msg.state_params.state = 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);
|
return tegra210_adsp_send_msg(app, &apm_msg, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user