From 57fb527a7e33384341fc18f1f918d5a8225057f5 Mon Sep 17 00:00:00 2001 From: Peter Daifuku Date: Fri, 6 Oct 2017 16:27:14 -0700 Subject: gpu: nvgpu: vgpu: flatten out vgpu hal Instead of calling the native HAL init function then adding multiple layers of modification for VGPU, flatten out the sequence so that all entry points are set statically and visible in a single file. JIRA ESRM-30 Change-Id: Ie424abb48bce5038874851d399baac5e4bb7d27c Signed-off-by: Peter Daifuku Reviewed-on: https://git-master.nvidia.com/r/1574616 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/vgpu/ce2_vgpu.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'drivers/gpu/nvgpu/vgpu/ce2_vgpu.c') diff --git a/drivers/gpu/nvgpu/vgpu/ce2_vgpu.c b/drivers/gpu/nvgpu/vgpu/ce2_vgpu.c index e53a3c18..bd225f0c 100644 --- a/drivers/gpu/nvgpu/vgpu/ce2_vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/ce2_vgpu.c @@ -43,14 +43,9 @@ int vgpu_ce2_nonstall_isr(struct gk20a *g, return 0; } -static u32 vgpu_ce_get_num_pce(struct gk20a *g) +u32 vgpu_ce_get_num_pce(struct gk20a *g) { struct vgpu_priv_data *priv = vgpu_get_priv_data(g); return priv->constants.num_pce; } - -void vgpu_init_ce2_ops(struct gpu_ops *gops) -{ - gops->ce2.get_num_pce = vgpu_ce_get_num_pce; -} -- cgit v1.2.2