diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index 25636bbd..8217a8bf 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -3126,7 +3126,6 @@ int gk20a_alloc_obj_ctx(struct channel_gk20a *c, | |||
3126 | struct nvgpu_alloc_obj_ctx_args *args) | 3126 | struct nvgpu_alloc_obj_ctx_args *args) |
3127 | { | 3127 | { |
3128 | struct gk20a *g = c->g; | 3128 | struct gk20a *g = c->g; |
3129 | struct gk20a_platform *platform = dev_get_drvdata(g->dev); | ||
3130 | struct fifo_gk20a *f = &g->fifo; | 3129 | struct fifo_gk20a *f = &g->fifo; |
3131 | struct channel_ctx_gk20a *ch_ctx = &c->ch_ctx; | 3130 | struct channel_ctx_gk20a *ch_ctx = &c->ch_ctx; |
3132 | struct tsg_gk20a *tsg = NULL; | 3131 | struct tsg_gk20a *tsg = NULL; |
@@ -3281,7 +3280,7 @@ int gk20a_alloc_obj_ctx(struct channel_gk20a *c, | |||
3281 | 3280 | ||
3282 | args->flags |= NVGPU_ALLOC_OBJ_FLAGS_LOCKBOOST_ZERO; | 3281 | args->flags |= NVGPU_ALLOC_OBJ_FLAGS_LOCKBOOST_ZERO; |
3283 | 3282 | ||
3284 | if (g->support_pmu && platform->can_elpg) | 3283 | if (g->support_pmu && g->can_elpg) |
3285 | gk20a_pmu_enable_elpg(g); | 3284 | gk20a_pmu_enable_elpg(g); |
3286 | } | 3285 | } |
3287 | 3286 | ||