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 <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1473707
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Terje Bergstrom
2017-05-01 13:55:22 -07:00
committed by mobile promotions
parent c43c3f9c2f
commit 744e2d202e
6 changed files with 9 additions and 5 deletions

View File

@@ -401,7 +401,7 @@ int exec_regops_gk20a(struct dbg_session_gk20a *dbg_s,
* regops implementation, so we return -ENOSYS. This will allow
* compute apps to run with vgpu. Tools will not work in this
* configuration and are not required to work at this time. */
if (gk20a_gpu_is_virtual(dbg_s->dev))
if (g->is_virtual)
return -ENOSYS;
ok = validate_reg_ops(dbg_s,