diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_gk20a.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h index 0f796ffe..4aea9d19 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h | |||
@@ -80,6 +80,12 @@ struct channel_gk20a_poll_events { | |||
80 | int num_pending_events; | 80 | int num_pending_events; |
81 | }; | 81 | }; |
82 | 82 | ||
83 | struct channel_gk20a_clean_up { | ||
84 | struct mutex lock; | ||
85 | bool scheduled; | ||
86 | struct delayed_work wq; | ||
87 | }; | ||
88 | |||
83 | /* this is the priv element of struct nvhost_channel */ | 89 | /* this is the priv element of struct nvhost_channel */ |
84 | struct channel_gk20a { | 90 | struct channel_gk20a { |
85 | struct gk20a *g; /* set only when channel is active */ | 91 | struct gk20a *g; /* set only when channel is active */ |
@@ -133,6 +139,7 @@ struct channel_gk20a { | |||
133 | u32 timeout_gpfifo_get; | 139 | u32 timeout_gpfifo_get; |
134 | 140 | ||
135 | struct channel_gk20a_timeout timeout; | 141 | struct channel_gk20a_timeout timeout; |
142 | struct channel_gk20a_clean_up clean_up; | ||
136 | 143 | ||
137 | bool cmds_pending; | 144 | bool cmds_pending; |
138 | struct { | 145 | struct { |