summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
authorSunny He <suhe@nvidia.com>2017-06-27 17:25:25 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-07-13 03:09:08 -0400
commit47cb48f1e2d9c34f22f9fcf443ef67a32cd54a73 (patch)
tree830b854aa34a0faa6ac07e40cb7d46f72c5d5907 /drivers/gpu/nvgpu/gk20a/gk20a.h
parente78153ea1b6b610f2307b86fc42ea33d678b250f (diff)
gpu: nvgpu: Move gops.mc's non-fp members
Move non-function pointer members out of the mc substruct of gpu_ops. Ideally gpu_ops will have only function ponters, better matching its intended purpose and improving readability. gops.mc.intr_mask_restore is now mc_intr_mask_restore Jira NVGPU-74 Change-Id: Iddf5e761012086e993c375d59e1bbdfb1e64db0c Signed-off-by: Sunny He <suhe@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1509602 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index dee74fdd..c7ade5f6 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -887,7 +887,6 @@ struct gpu_ops {
887 void (*reset)(struct gk20a *g, u32 units); 887 void (*reset)(struct gk20a *g, u32 units);
888 u32 (*boot_0)(struct gk20a *g, u32 *arch, u32 *impl, u32 *rev); 888 u32 (*boot_0)(struct gk20a *g, u32 *arch, u32 *impl, u32 *rev);
889 bool (*is_intr1_pending)(struct gk20a *g, enum nvgpu_unit unit, u32 mc_intr_1); 889 bool (*is_intr1_pending)(struct gk20a *g, enum nvgpu_unit unit, u32 mc_intr_1);
890 u32 intr_mask_restore[4];
891 } mc; 890 } mc;
892 struct { 891 struct {
893 void (*show_dump)(struct gk20a *g, 892 void (*show_dump)(struct gk20a *g,
@@ -1204,6 +1203,7 @@ struct gk20a {
1204 int client_refcount; /* open channels and ctrl nodes */ 1203 int client_refcount; /* open channels and ctrl nodes */
1205 1204
1206 struct gpu_ops ops; 1205 struct gpu_ops ops;
1206 u32 mc_intr_mask_restore[4];
1207 1207
1208 int irqs_enabled; 1208 int irqs_enabled;
1209 int irq_stall; /* can be same as irq_nonstall in case of PCI */ 1209 int irq_stall; /* can be same as irq_nonstall in case of PCI */