summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-05-01 16:55:22 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-05-04 18:54:30 -0400
commit744e2d202e2d38b0d8ff8b55e1e84daf75e39b48 (patch)
tree678a4630a360d8e600af20488132e07fd75896b1 /drivers/gpu/nvgpu/gk20a/gk20a.h
parentc43c3f9c2f4def3e2c09a6b837230ded82f1ea27 (diff)
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>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index 7ac1d909..c8d06b4f 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -1017,6 +1017,8 @@ struct gk20a {
1017 1017
1018 bool support_pmu; 1018 bool support_pmu;
1019 1019
1020 bool is_virtual;
1021
1020 u32 emc3d_ratio; 1022 u32 emc3d_ratio;
1021 1023
1022#ifdef CONFIG_DEBUG_FS 1024#ifdef CONFIG_DEBUG_FS