summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/gr_gp10b.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2015-02-20 11:39:31 -0500
committerDeepak Nibade <dnibade@nvidia.com>2016-12-27 04:52:03 -0500
commit7b70eb224a008b5debd1a6220d7835d6ebef70a0 (patch)
treee1297c279d10724bcedc699a49dbfe2a3436017c /drivers/gpu/nvgpu/gp10b/gr_gp10b.c
parent8d717d1e7c09c9cff25d671be3cd25ea6aa57f31 (diff)
gpu: nvgpu: gp10b: Enable warnings as errors
Change-Id: I86de27309ebecd038a7b32c6f86d87ce0156eb14 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/709867
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/gr_gp10b.c')
-rw-r--r--drivers/gpu/nvgpu/gp10b/gr_gp10b.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c
index e3d4b973..271a6d0c 100644
--- a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c
+++ b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c
@@ -571,11 +571,12 @@ int gr_gp10b_alloc_gr_ctx(struct gk20a *g,
571 (*gr_ctx)->preempt_mode = flags; 571 (*gr_ctx)->preempt_mode = flags;
572 } 572 }
573 573
574 if (class == PASCAL_COMPUTE_A) 574 if (class == PASCAL_COMPUTE_A) {
575 if (flags == NVGPU_GR_PREEMPTION_MODE_CILP) 575 if (flags == NVGPU_GR_PREEMPTION_MODE_CILP)
576 (*gr_ctx)->preempt_mode = NVGPU_GR_PREEMPTION_MODE_CILP; 576 (*gr_ctx)->preempt_mode = NVGPU_GR_PREEMPTION_MODE_CILP;
577 else 577 else
578 (*gr_ctx)->preempt_mode = NVGPU_GR_PREEMPTION_MODE_CTA; 578 (*gr_ctx)->preempt_mode = NVGPU_GR_PREEMPTION_MODE_CTA;
579 }
579 580
580 gk20a_dbg_fn("done"); 581 gk20a_dbg_fn("done");
581 582