mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
Change nvgpu_finalize_poweron() to call the subunit init functions by using a table. The table is local to nvgpu_finalize_poweron() since the function pointers are stored at runtime in the gk20a struct during HAL init. The table also includes a field for checking an enable flag before calling the init op, if required. The primary motivation for this change is to reduce CCM for nvgpu_finalize_poweron(). This change reduced the TCC metric from 40 to 10. The init unit test is disabled until it can be updated to match the new design. JIRA NVGPU-3980 Change-Id: Ic93d3fdd185cc7feb883c898284e15b251277a8b Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2202974 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>