mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
In update_devfreq(), we currently get target frequency, compare it with previous_freq, and set it only if new freq is different one But get_target_freq() (nvhost_pod_estimate_freq()) already takes care of such cases in normal conditions Hence, remove the check with previous_freq in update_devfreq() For case when we disable podgov governor, we might still end up setting max freq all the time Hence, add a check on previous_freq, and if previous_freq is already max, do not set it Bug 200175874 Bug 200161377 Change-Id: I287d37c07ee6214ed48612482211ce0f45088ca4 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/1111437 Reviewed-on: http://git-master/r/1113417 (cherry picked from linux-4.9 commit 9c424ce31bedac5db0c2d93e083f20ea89ed1836) Reviewed-on: https://git-master.nvidia.com/r/1770136 Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Timo Alho <talho@nvidia.com> Tested-by: Timo Alho <talho@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>