mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
Since K519+, frequency table and max_state information is stored in the devfreq struct directly, not in the devfreq_dev_profile struct. Use nvidia conftest to conditionally build the governor and choose the correct data structure for accessing the information. Kernel build won't complain anything when build the governor, but when the devfreq driver (e.g. nvgpu) trying to add the devfreq device with the nvhost_pogdov governor, it will fail to add the devfreq device since the frequency table information is NULL in the devfreq_dev_profile and the governor use the wrong information. Bug 4883576 Change-Id: I885bc4ceac885eea5644416b6eacefbbea523a2b Signed-off-by: Johnny Liu <johnliu@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3229870 GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
24 KiB
24 KiB