diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-04-14 16:11:18 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-19 16:24:30 -0400 |
commit | 6df49a63ca5f9d77a6d7d6c7dbaaa0fba1b707ca (patch) | |
tree | b50c57b2759fb4a20390880ea5b5d874d324d046 /drivers/gpu/nvgpu/vgpu/vgpu.c | |
parent | 15e9b433f3a33f4d68582d8eeabfcfd32db8c340 (diff) |
gpu: nvgpu: Move is_fmodel to struct gk20a
Copy is_fmodel to struct gk20a at probe time, and access it from
gk20a instead of platform_gk20a.
JIRA NVGPU-16
Change-Id: Ib8d793ea2b02b62da3bfdbb6372d9927658b7ec6
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1463540
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/vgpu.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/vgpu.c b/drivers/gpu/nvgpu/vgpu/vgpu.c index 75fdd369..cc672b1e 100644 --- a/drivers/gpu/nvgpu/vgpu/vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/vgpu.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/dma-mapping.h> | 18 | #include <linux/dma-mapping.h> |
19 | #include <linux/pm_runtime.h> | 19 | #include <linux/pm_runtime.h> |
20 | #include <linux/pm_qos.h> | 20 | #include <linux/pm_qos.h> |
21 | #include <soc/tegra/chip-id.h> | ||
21 | 22 | ||
22 | #include <nvgpu/kmem.h> | 23 | #include <nvgpu/kmem.h> |
23 | #include <nvgpu/bug.h> | 24 | #include <nvgpu/bug.h> |
@@ -574,8 +575,8 @@ int vgpu_probe(struct platform_device *pdev) | |||
574 | } | 575 | } |
575 | 576 | ||
576 | gk20a->dev = dev; | 577 | gk20a->dev = dev; |
577 | 578 | if (tegra_platform_is_linsim() || tegra_platform_is_vdk()) | |
578 | gk20a->is_fmodel = platform->is_fmodel; | 579 | gk20a->is_fmodel = true; |
579 | 580 | ||
580 | nvgpu_kmem_init(gk20a); | 581 | nvgpu_kmem_init(gk20a); |
581 | 582 | ||