diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-05-12 13:32:11 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-05-17 13:24:25 -0400 |
commit | 2c822a63885ec79ac2d860e13438c6154e23e5d0 (patch) | |
tree | eab486eb38d2d74b211ad94e4c1d28368922a23c /drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |
parent | 39a9e251da0fb4da8512593d3ce4f6eba47d5e0c (diff) |
gpu: nvgpu: Remove uses of platform->can_elpg
Remove newly introduced uses of gk20a_platform->can_elpg. Rename the
field to can_elpg_init and replace all uses with gk20a->can_elpg.
Change-Id: Id6e84d4c16159b5da80c583a8a94a9c5cc2423ec
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1480955
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
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 | ||