summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_tsg.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/ioctl_tsg.c4
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;