diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_gk20a.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h index e4cce101..9c0d22d2 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h | |||
@@ -161,6 +161,7 @@ enum channel_gk20a_ref_action_type { | |||
161 | channel_gk20a_ref_action_put | 161 | channel_gk20a_ref_action_put |
162 | }; | 162 | }; |
163 | 163 | ||
164 | #if GK20A_CHANNEL_REFCOUNT_TRACKING | ||
164 | struct channel_gk20a_ref_action { | 165 | struct channel_gk20a_ref_action { |
165 | enum channel_gk20a_ref_action_type type; | 166 | enum channel_gk20a_ref_action_type type; |
166 | s64 timestamp_ms; | 167 | s64 timestamp_ms; |
@@ -171,6 +172,7 @@ struct channel_gk20a_ref_action { | |||
171 | struct stack_trace trace; | 172 | struct stack_trace trace; |
172 | unsigned long trace_entries[GK20A_CHANNEL_REFCOUNT_TRACKING_STACKLEN]; | 173 | unsigned long trace_entries[GK20A_CHANNEL_REFCOUNT_TRACKING_STACKLEN]; |
173 | }; | 174 | }; |
175 | #endif | ||
174 | 176 | ||
175 | /* this is the priv element of struct nvhost_channel */ | 177 | /* this is the priv element of struct nvhost_channel */ |
176 | struct channel_gk20a { | 178 | struct channel_gk20a { |