diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/tsg_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/tsg_gk20a.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h index 3f6ef4de..51bc1086 100644 --- a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h | |||
@@ -24,6 +24,7 @@ | |||
24 | 24 | ||
25 | #include <nvgpu/lock.h> | 25 | #include <nvgpu/lock.h> |
26 | #include <nvgpu/kref.h> | 26 | #include <nvgpu/kref.h> |
27 | #include <nvgpu/rwsem.h> | ||
27 | 28 | ||
28 | #define NVGPU_INVALID_TSG_ID (-1) | 29 | #define NVGPU_INVALID_TSG_ID (-1) |
29 | 30 | ||
@@ -46,7 +47,7 @@ struct tsg_gk20a { | |||
46 | 47 | ||
47 | struct nvgpu_list_node ch_list; | 48 | struct nvgpu_list_node ch_list; |
48 | int num_active_channels; | 49 | int num_active_channels; |
49 | struct rw_semaphore ch_list_lock; | 50 | struct nvgpu_rwsem ch_list_lock; |
50 | 51 | ||
51 | unsigned int timeslice_us; | 52 | unsigned int timeslice_us; |
52 | unsigned int timeslice_timeout; | 53 | unsigned int timeslice_timeout; |