mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
When switching the governor to nvhost_pogdov or switching back to other governors, we will need to lock the devfreq lock to prevent triggering DVFS cycle from other paths. The nvhost_pod_target_freq callback will be called when triggering the DVFS cycle. However, the callback expects governor data is already allocated and initialized. We need to synchronize the operations when we switch the governor so that DVFS cycle can only be triggered when governor data is ready. Bug 5354161 Bug 5351714 Change-Id: Iaf8af8291ea09a7c2bfbdc5e1453bb976ee0987b Signed-off-by: Johnny Liu <johnliu@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3392341 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: Rajesh Devaraj <rdevaraj@nvidia.com> Reviewed-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>