adsp: dfs: override adsp dfs and reinit actmon
authorPuneet Saxena <puneets@nvidia.com>
Wed, 18 May 2016 10:03:28 +0000 (15:03 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Thu, 26 May 2016 14:42:31 +0000 (07:42 -0700)
commit0ab0120dc7a842bf2f6918b06c5751651436aea9
tree53ce9226a560f0078e9eed2d4251257e7513e39f
parentf0b2157b76fd143f9eaa6ff299d01edcfbcc42a6
adsp: dfs: override adsp dfs and reinit actmon

To fix sudden adsp freq scaling, exporting an adsp_dfs
interface. The interface overrides actmon requested
freq and reinitialize actmon to settle down at suitable freq
as per the current load.

Bug 200198367
Bug 200196267

Change-Id: Iad542e527f50ff365225f23128e398cd9c216a5b
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Signed-off-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-on: http://git-master/r/1149683
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Viraj Karandikar <vkarandikar@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
drivers/platform/tegra/nvadsp/adsp_dfs.c
drivers/platform/tegra/nvadsp/ape_actmon.c
drivers/platform/tegra/nvadsp/ape_actmon.h
include/linux/tegra_nvadsp.h