mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
Reduce code complexity of following functions in gr.falcon unit nvgpu_gr_falcon_load_secure_ctxsw_ucode(complexity : 14 to 5) Create sub functions by moving the control statement codes from the function which has high complexity above 10. Create three sub functions from nvgpu_gr_falcon_load_secure_ctxsw_ucode function Sub functions to do bootstrap during recovery and cold boot Generalize sec2 and ls_pmu bootstrap to a single function. gr_falcon_sec2_or_ls_pmu_bootstrap(with complexity : 4) gr_falcon_recovery_bootstrap(with complexity : 4) gr_falcon_coldboot_bootstrap(with complexity : 5) and reduce nvgpu_gr_falcon_load_secure_ctxsw_ucode complexity to 5 Jira NVGPU-3662 Change-Id: I290580572d6c6dac6aa9bbd93b06c84ec3b93637 Signed-off-by: vinodg <vinodg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2165255 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>