diff options
author | Thomas Fleury <tfleury@nvidia.com> | 2016-06-24 11:52:18 -0400 |
---|---|---|
committer | Vijayakumar Subbu <vsubbu@nvidia.com> | 2016-07-19 02:17:55 -0400 |
commit | d6efa8fc625fc297b9baa0755407cee1180fbbe6 (patch) | |
tree | 5bf0f7b53579afc1fb16130ec2b54be8fba6cbf1 /drivers/gpu/nvgpu/gk20a/tsg_gk20a.c | |
parent | c8ffe0fdecfa110a9f9beb1b7e0298d3c3c64cc2 (diff) |
gpu: nvgpu: add ref counting for GPU sched ctrl
Jira VFND-1968
Change-Id: Id84c5732e312e44db3d412df5c21e429227dd7fa
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: http://git-master/r/1171286
(cherry picked from commit 13a3a4355914635ed175708affef17dc8ef0b133)
Reviewed-on: http://git-master/r/1177824
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Richard Zhao <rizhao@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/tsg_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/tsg_gk20a.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c index af8f0f7b..3e83cd06 100644 --- a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c | |||
@@ -28,8 +28,6 @@ | |||
28 | #define NVGPU_TSG_MIN_TIMESLICE_US 1000 | 28 | #define NVGPU_TSG_MIN_TIMESLICE_US 1000 |
29 | #define NVGPU_TSG_MAX_TIMESLICE_US 50000 | 29 | #define NVGPU_TSG_MAX_TIMESLICE_US 50000 |
30 | 30 | ||
31 | static void gk20a_tsg_release(struct kref *ref); | ||
32 | |||
33 | bool gk20a_is_channel_marked_as_tsg(struct channel_gk20a *ch) | 31 | bool gk20a_is_channel_marked_as_tsg(struct channel_gk20a *ch) |
34 | { | 32 | { |
35 | return !(ch->tsgid == NVGPU_INVALID_TSG_ID); | 33 | return !(ch->tsgid == NVGPU_INVALID_TSG_ID); |
@@ -449,7 +447,7 @@ int gk20a_tsg_dev_open(struct inode *inode, struct file *filp) | |||
449 | return ret; | 447 | return ret; |
450 | } | 448 | } |
451 | 449 | ||
452 | static void gk20a_tsg_release(struct kref *ref) | 450 | void gk20a_tsg_release(struct kref *ref) |
453 | { | 451 | { |
454 | struct tsg_gk20a *tsg = container_of(ref, struct tsg_gk20a, refcount); | 452 | struct tsg_gk20a *tsg = container_of(ref, struct tsg_gk20a, refcount); |
455 | struct gk20a *g = tsg->g; | 453 | struct gk20a *g = tsg->g; |