mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
Reduced code complexity in following functions: nvgpu_gr_ctx_map_global_ctx_buffers 15 -> 8 and nvgpu_gr_ctx_alloc_ctxsw_buffers 12 -> 8 Added following helper functions to reduce code complexity in above function: nvgpu_gr_ctx_map_ctx_circular_buffer: code complexity 4 nvgpu_gr_ctx_map_ctx_attribute_buffer: code complexity 4 nvgpu_gr_ctx_map_ctx_pagepool_buffer: code complexity 4 nvgpu_gr_ctx_map_ctx_buffer: code complexity 3 nvgpu_gr_ctx_alloc_preemption_buffers: code complexity 6 JIRA NVGPU-3581 Change-Id: I44ff6307a7afe659c41a9b9a170d45e092b0c9a8 Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2160592 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>
28 KiB
28 KiB