mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +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
@@ -28,9 +28,7 @@
|
||||
|
||||
void gk20a_enable_priv_ring(struct gk20a *g)
|
||||
{
|
||||
struct gk20a_platform *platform = dev_get_drvdata(g->dev);
|
||||
|
||||
if (platform->is_fmodel)
|
||||
if (g->is_fmodel)
|
||||
return;
|
||||
|
||||
if (g->ops.clock_gating.slcg_priring_load_gating_prod)
|
||||
@@ -75,9 +73,8 @@ void gk20a_priv_ring_isr(struct gk20a *g)
|
||||
s32 retry = 100;
|
||||
u32 gpc;
|
||||
u32 gpc_stride = nvgpu_get_litter_value(g, GPU_LIT_GPC_STRIDE);
|
||||
struct gk20a_platform *platform = dev_get_drvdata(g->dev);
|
||||
|
||||
if (platform->is_fmodel)
|
||||
if (g->is_fmodel)
|
||||
return;
|
||||
|
||||
status0 = gk20a_readl(g, pri_ringmaster_intr_status0_r());
|
||||
|
||||
Reference in New Issue
Block a user