mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
g->ops.gr.get_preemption_mode_flags() hal is used to fetch information on supported preemption modes and default preemption mode Temporary struct nvgpu_preemption_modes_rec is used for this purpose and is defined in gk20a/gr_gk20a.h right now. Split above hal into two separate hals and move them to hal.gr.init unit g->ops.gr.init.get_supported__preemption_modes() g->ops.gr.init.get_default_preemption_modes() These hals now return respective flags in pointers passed in function parameter list, so there is no need to use temporary structure anymore Hence delete struct nvgpu_preemption_modes_rec Implement gm20b/gp10b chip specific hals in hal.gr.init unit. Delete g->ops.gr.get_preemption_mode_flags() hal Jira NVGPU-3126 Change-Id: I84f507fcd8d122bb7f0ecf697e8b4f16c9339ce1 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2102455 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>