summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2018-01-31 18:28:23 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-04-04 02:24:22 -0400
commitaf65ec26976719547212ae29abc10548cf40b7ac (patch)
tree44cc2c89a1b1521b4d3eff7e28cf16a39e078773
parente7cc24eb9b78e1cdd0f321123e64261c95018e73 (diff)
gpu: nvgpu: Use #define for stalling/nonstalling
We use stalling and non-stalling enums in many places where u32 is expected. enum conversion to u32 is considered unsafe, so change the definition to #define with a qualifier U. Change-Id: Ifa5cb9b6a0b0de79f7f8266979fc487d9823bafa Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1683817 Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
-rw-r--r--drivers/gpu/nvgpu/gp10b/mc_gp10b.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/mc_gp10b.h b/drivers/gpu/nvgpu/gp10b/mc_gp10b.h
index 0eb4dd16..4e93235c 100644
--- a/drivers/gpu/nvgpu/gp10b/mc_gp10b.h
+++ b/drivers/gpu/nvgpu/gp10b/mc_gp10b.h
@@ -24,10 +24,8 @@
24#define MC_GP20B_H 24#define MC_GP20B_H
25struct gk20a; 25struct gk20a;
26 26
27enum MC_INTERRUPT_REGLIST { 27#define NVGPU_MC_INTR_STALLING 0U
28 NVGPU_MC_INTR_STALLING = 0, 28#define NVGPU_MC_INTR_NONSTALLING 1U
29 NVGPU_MC_INTR_NONSTALLING,
30};
31 29
32void mc_gp10b_intr_enable(struct gk20a *g); 30void mc_gp10b_intr_enable(struct gk20a *g);
33void mc_gp10b_intr_unit_config(struct gk20a *g, bool enable, 31void mc_gp10b_intr_unit_config(struct gk20a *g, bool enable,