From 744e2d202e2d38b0d8ff8b55e1e84daf75e39b48 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Mon, 1 May 2017 13:55:22 -0700 Subject: gpu: nvgpu: Add flag gk20a->is_virtual Instead of calling gk20a_gpu_is_virtual() which requires struct device pointer fill in flag gk20a->is_virtual and use that. JIRA NVGPU-16 Change-Id: I24382c041ee69940c703ca1ea7f5c667c5731cd1 Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/1473707 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gp10b/hal_gp10b.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/gp10b/hal_gp10b.c') diff --git a/drivers/gpu/nvgpu/gp10b/hal_gp10b.c b/drivers/gpu/nvgpu/gp10b/hal_gp10b.c index e8cd6a71..40e49e13 100644 --- a/drivers/gpu/nvgpu/gp10b/hal_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/hal_gp10b.c @@ -198,7 +198,7 @@ int gp10b_init_hal(struct gk20a *g) if (g->is_fmodel) { gops->privsecurity = 0; gops->securegpccs = 0; - } else if (gk20a_gpu_is_virtual(g->dev)) { + } else if (g->is_virtual) { gops->privsecurity = 1; gops->securegpccs = 1; } else { -- cgit v1.2.2