gpu: nvgpu: Remove version check for devfreq support

The soft-depedenency for the governor_pod_scaling_v2 driver was
initially added to ensure this driver is loaded when built as an
out-of-tree module. The driver has now been renamed to
governor_pod_scaling but instead of simply updating the soft-dependency
name a new soft-dependency was added specifically with the new driver
name. This is not necessary and this also breaks frequency scaling
support for kernels for kernel to prior to v5.15. Fix this by removing
this compile time check and legacy soft-dependency.

Bug 4074863
Bug 4223170

Change-Id: Ie3179446896c388ec13b63a1af368149ed4b145c
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2948084
Reviewed-by: Sagar Kamble <skamble@nvidia.com>
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-by: Johnny Liu <johnliu@nvidia.com>
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Jon Hunter
2023-08-03 18:04:04 +01:00
committed by mobile promotions
parent 0cc9253351
commit 91ac1541a5

View File

@@ -2106,11 +2106,7 @@ static void __exit gk20a_exit(void)
MODULE_IMPORT_NS(DMA_BUF); MODULE_IMPORT_NS(DMA_BUF);
#endif #endif
#ifdef CONFIG_GK20A_DEVFREQ #ifdef CONFIG_GK20A_DEVFREQ
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0)
MODULE_SOFTDEP("pre: governor_pod_scaling"); MODULE_SOFTDEP("pre: governor_pod_scaling");
#else
MODULE_SOFTDEP("pre: governor_pod_scaling_v2");
#endif
#endif #endif
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
module_init(gk20a_init); module_init(gk20a_init);