summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/channel.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/channel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/channel.c b/drivers/gpu/nvgpu/common/linux/channel.c
index 1ae2d444..0ed596ac 100644
--- a/drivers/gpu/nvgpu/common/linux/channel.c
+++ b/drivers/gpu/nvgpu/common/linux/channel.c
@@ -29,6 +29,7 @@
29#include "gk20a/gk20a.h" 29#include "gk20a/gk20a.h"
30 30
31#include "channel.h" 31#include "channel.h"
32#include "ioctl_channel.h"
32#include "os_linux.h" 33#include "os_linux.h"
33 34
34#include <nvgpu/hw/gk20a/hw_pbdma_gk20a.h> 35#include <nvgpu/hw/gk20a/hw_pbdma_gk20a.h>
@@ -242,6 +243,10 @@ static void nvgpu_channel_open_linux(struct channel_gk20a *ch)
242static void nvgpu_channel_close_linux(struct channel_gk20a *ch) 243static void nvgpu_channel_close_linux(struct channel_gk20a *ch)
243{ 244{
244 nvgpu_channel_work_completion_clear(ch); 245 nvgpu_channel_work_completion_clear(ch);
246
247#if defined(CONFIG_GK20A_CYCLE_STATS)
248 gk20a_channel_free_cycle_stats_snapshot(ch);
249#endif
245} 250}
246 251
247static int nvgpu_channel_alloc_linux(struct gk20a *g, struct channel_gk20a *ch) 252static int nvgpu_channel_alloc_linux(struct gk20a *g, struct channel_gk20a *ch)