diff options
author | Debarshi Dutta <ddutta@nvidia.com> | 2017-10-10 01:15:54 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-10-16 16:35:04 -0400 |
commit | 61b263d83222cd5d2ff3d2d5d699b07ebdf44288 (patch) | |
tree | 07ef35fb427dc2f93741ed9193673b6da2872bb7 /drivers/gpu/nvgpu/common/linux/ioctl_tsg.c | |
parent | 30b9cbe35a2a0adc4e3a65b033dc0f61046783ea (diff) |
gpu: nvgpu: replace wait_queue_head_t with nvgpu_cond
Replace existing usages of wait_queue_head_t with struct nvgpu_cond and
using the corresponding APIs in order to reduce Linux dependencies in NVGPU.
JIRA NVGPU-205
Change-Id: I85850369c3c47d3e1704e4171b1d172361842423
Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1575778
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_tsg.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/ioctl_tsg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c b/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c index 10379633..6d0439f3 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c +++ b/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c | |||
@@ -97,7 +97,7 @@ void gk20a_tsg_event_id_post_event(struct tsg_gk20a *tsg, | |||
97 | event_id, tsg->tsgid); | 97 | event_id, tsg->tsgid); |
98 | event_id_data->event_posted = true; | 98 | event_id_data->event_posted = true; |
99 | 99 | ||
100 | wake_up_interruptible_all(&event_id_data->event_id_wq); | 100 | nvgpu_cond_broadcast_interruptible(&event_id_data->event_id_wq); |
101 | 101 | ||
102 | nvgpu_mutex_release(&event_id_data->lock); | 102 | nvgpu_mutex_release(&event_id_data->lock); |
103 | } | 103 | } |
@@ -150,7 +150,7 @@ static int gk20a_tsg_event_id_enable(struct tsg_gk20a *tsg, | |||
150 | event_id_data->is_tsg = true; | 150 | event_id_data->is_tsg = true; |
151 | event_id_data->event_id = event_id; | 151 | event_id_data->event_id = event_id; |
152 | 152 | ||
153 | init_waitqueue_head(&event_id_data->event_id_wq); | 153 | nvgpu_cond_init(&event_id_data->event_id_wq); |
154 | err = nvgpu_mutex_init(&event_id_data->lock); | 154 | err = nvgpu_mutex_init(&event_id_data->lock); |
155 | if (err) | 155 | if (err) |
156 | goto clean_up_free; | 156 | goto clean_up_free; |