diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/tsg_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/tsg_gk20a.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c index 4efcfda8..64d521a0 100644 --- a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c | |||
@@ -22,6 +22,7 @@ | |||
22 | 22 | ||
23 | #include <nvgpu/kmem.h> | 23 | #include <nvgpu/kmem.h> |
24 | #include <nvgpu/log.h> | 24 | #include <nvgpu/log.h> |
25 | #include <nvgpu/os_sched.h> | ||
25 | 26 | ||
26 | #include "gk20a.h" | 27 | #include "gk20a.h" |
27 | #include "tsg_gk20a.h" | 28 | #include "tsg_gk20a.h" |
@@ -286,7 +287,7 @@ struct tsg_gk20a *gk20a_tsg_open(struct gk20a *g) | |||
286 | tsg->timeslice_timeout = 0; | 287 | tsg->timeslice_timeout = 0; |
287 | tsg->timeslice_scale = 0; | 288 | tsg->timeslice_scale = 0; |
288 | tsg->runlist_id = ~0; | 289 | tsg->runlist_id = ~0; |
289 | tsg->tgid = current->tgid; | 290 | tsg->tgid = nvgpu_current_pid(g); |
290 | 291 | ||
291 | if (g->ops.fifo.init_eng_method_buffers) | 292 | if (g->ops.fifo.init_eng_method_buffers) |
292 | g->ops.fifo.init_eng_method_buffers(g, tsg); | 293 | g->ops.fifo.init_eng_method_buffers(g, tsg); |