summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-12-15 13:25:22 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-12-28 13:01:32 -0500
commitf19f22fcc8ef21b363b873c499cbd2e690af29f8 (patch)
tree02d6b8280af305d0339ed860e331ab091d4b49d2 /drivers/gpu/nvgpu/gk20a/tsg_gk20a.h
parentaa52601f620423fdd98b79e2c2c5e1d767a5f685 (diff)
gpu: nvgpu: Remove support for channel events
Remove support for events for bare channels. All users have already moved to TSGs and TSG events. Bug 1842197 Change-Id: Ib3ff68134ad9515ee761d0f0e19a3150a0b744ab Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1618906 Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/tsg_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/tsg_gk20a.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h
index 5e2b9b82..08fe0365 100644
--- a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h
@@ -87,5 +87,24 @@ u32 gk20a_tsg_get_timeslice(struct tsg_gk20a *tsg);
87int gk20a_tsg_set_priority(struct gk20a *g, struct tsg_gk20a *tsg, 87int gk20a_tsg_set_priority(struct gk20a *g, struct tsg_gk20a *tsg,
88 u32 priority); 88 u32 priority);
89 89
90struct gk20a_event_id_data {
91 struct gk20a *g;
92
93 int id; /* ch or tsg */
94 u32 event_id;
95
96 bool event_posted;
97
98 struct nvgpu_cond event_id_wq;
99 struct nvgpu_mutex lock;
100 struct nvgpu_list_node event_id_node;
101};
102
103static inline struct gk20a_event_id_data *
104gk20a_event_id_data_from_event_id_node(struct nvgpu_list_node *node)
105{
106 return (struct gk20a_event_id_data *)
107 ((uintptr_t)node - offsetof(struct gk20a_event_id_data, event_id_node));
108};
90 109
91#endif /* __TSG_GK20A_H_ */ 110#endif /* __TSG_GK20A_H_ */