summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h
index 3702c82d..681a0437 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h
@@ -475,14 +475,14 @@ void gk20a_gr_clear_sm_hww(struct gk20a *g,
475 int err = 0; \ 475 int err = 0; \
476 if (support_gk20a_pmu(g->dev) && g->elpg_enabled) {\ 476 if (support_gk20a_pmu(g->dev) && g->elpg_enabled) {\
477 err = gk20a_pmu_disable_elpg(g); \ 477 err = gk20a_pmu_disable_elpg(g); \
478 if (err) { \ 478 if (err) \
479 gk20a_pmu_enable_elpg(g); \
480 } \
481 if (!err) { \
482 err = func; \
483 if (support_gk20a_pmu(g->dev) && g->elpg_enabled) \
479 gk20a_pmu_enable_elpg(g); \ 484 gk20a_pmu_enable_elpg(g); \
480 return err; \
481 } \
482 } \ 485 } \
483 err = func; \
484 if (support_gk20a_pmu(g->dev) && g->elpg_enabled) \
485 gk20a_pmu_enable_elpg(g); \
486 err; \ 486 err; \
487 }) 487 })
488 488