mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
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
This commit is contained in:
committed by
mobile promotions
parent
15e9b433f3
commit
6df49a63ca
@@ -212,11 +212,6 @@ static int gk20a_pm_prepare_poweroff(struct device *dev)
|
||||
if (g->irq_stall != g->irq_nonstall)
|
||||
disable_irq(g->irq_nonstall);
|
||||
|
||||
/*
|
||||
* is_fmodel needs to be in gk20a struct for deferred teardown
|
||||
*/
|
||||
g->is_fmodel = platform->is_fmodel;
|
||||
|
||||
/* Decrement platform power refcount */
|
||||
if (platform->idle)
|
||||
platform->idle(dev);
|
||||
@@ -885,7 +880,7 @@ static int gk20a_probe(struct platform_device *dev)
|
||||
gk20a->dev = &dev->dev;
|
||||
|
||||
if (nvgpu_platform_is_simulation(gk20a))
|
||||
platform->is_fmodel = true;
|
||||
gk20a->is_fmodel = true;
|
||||
|
||||
nvgpu_kmem_init(gk20a);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user