summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_gk20a.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
index a0415861..dac38739 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
@@ -376,22 +376,6 @@ void gk20a_channel_free_cycle_stats_buffer(struct channel_gk20a *ch)
376 nvgpu_mutex_release(&ch->cyclestate.cyclestate_buffer_mutex); 376 nvgpu_mutex_release(&ch->cyclestate.cyclestate_buffer_mutex);
377} 377}
378 378
379int gk20a_channel_free_cycle_stats_snapshot(struct channel_gk20a *ch)
380{
381 int ret;
382
383 nvgpu_mutex_acquire(&ch->cs_client_mutex);
384 if (ch->cs_client) {
385 ret = gr_gk20a_css_detach(ch, ch->cs_client);
386 ch->cs_client = NULL;
387 } else {
388 ret = 0;
389 }
390 nvgpu_mutex_release(&ch->cs_client_mutex);
391
392 return ret;
393}
394
395#endif 379#endif
396 380
397/* call ONLY when no references to the channel exist: after the last put */ 381/* call ONLY when no references to the channel exist: after the last put */
@@ -508,7 +492,6 @@ static void gk20a_free_channel(struct channel_gk20a *ch, bool force)
508 492
509#if defined(CONFIG_GK20A_CYCLE_STATS) 493#if defined(CONFIG_GK20A_CYCLE_STATS)
510 gk20a_channel_free_cycle_stats_buffer(ch); 494 gk20a_channel_free_cycle_stats_buffer(ch);
511 gk20a_channel_free_cycle_stats_snapshot(ch);
512#endif 495#endif
513 496
514 channel_gk20a_free_priv_cmdbuf(ch); 497 channel_gk20a_free_priv_cmdbuf(ch);