diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_channel.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/ioctl_channel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_channel.c b/drivers/gpu/nvgpu/common/linux/ioctl_channel.c index 6c66eca0..3ea07eed 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_channel.c +++ b/drivers/gpu/nvgpu/common/linux/ioctl_channel.c | |||
@@ -575,7 +575,7 @@ static unsigned int gk20a_event_id_poll(struct file *filep, poll_table *wait) | |||
575 | 575 | ||
576 | gk20a_dbg(gpu_dbg_fn | gpu_dbg_info, ""); | 576 | gk20a_dbg(gpu_dbg_fn | gpu_dbg_info, ""); |
577 | 577 | ||
578 | poll_wait(filep, &event_id_data->event_id_wq, wait); | 578 | poll_wait(filep, &event_id_data->event_id_wq.wq, wait); |
579 | 579 | ||
580 | nvgpu_mutex_acquire(&event_id_data->lock); | 580 | nvgpu_mutex_acquire(&event_id_data->lock); |
581 | 581 | ||
@@ -683,7 +683,7 @@ void gk20a_channel_event_id_post_event(struct channel_gk20a *ch, | |||
683 | event_id, ch->chid); | 683 | event_id, ch->chid); |
684 | event_id_data->event_posted = true; | 684 | event_id_data->event_posted = true; |
685 | 685 | ||
686 | wake_up_interruptible_all(&event_id_data->event_id_wq); | 686 | nvgpu_cond_broadcast_interruptible(&event_id_data->event_id_wq); |
687 | 687 | ||
688 | nvgpu_mutex_release(&event_id_data->lock); | 688 | nvgpu_mutex_release(&event_id_data->lock); |
689 | } | 689 | } |
@@ -735,7 +735,7 @@ static int gk20a_channel_event_id_enable(struct channel_gk20a *ch, | |||
735 | event_id_data->is_tsg = false; | 735 | event_id_data->is_tsg = false; |
736 | event_id_data->event_id = event_id; | 736 | event_id_data->event_id = event_id; |
737 | 737 | ||
738 | init_waitqueue_head(&event_id_data->event_id_wq); | 738 | nvgpu_cond_init(&event_id_data->event_id_wq); |
739 | err = nvgpu_mutex_init(&event_id_data->lock); | 739 | err = nvgpu_mutex_init(&event_id_data->lock); |
740 | if (err) | 740 | if (err) |
741 | goto clean_up_free; | 741 | goto clean_up_free; |