summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-04-25 16:54:58 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-06-05 16:53:13 -0400
commit0ebe462c130108a027f85bcb6736fed2ef74204e (patch)
treedb2a81adb9fbf8d7dd605b6931cbb8fff075ec01 /drivers/gpu/nvgpu/common
parent673dd971600b26131c0afdb221e13c080da022fd (diff)
gpu: nvgpu: Use nvgpu_cond in notifier wq
Change notifier wait queue to use nvgpu_cond instead of Linux wait queue. JIRA NVGPU-14 Change-Id: I197a0ef6c0a2331ca0dbb3480bdb89d45ba73020 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1469853 Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'drivers/gpu/nvgpu/common')
-rw-r--r--drivers/gpu/nvgpu/common/linux/ioctl_channel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_channel.c b/drivers/gpu/nvgpu/common/linux/ioctl_channel.c
index d81328f0..2c9fac0b 100644
--- a/drivers/gpu/nvgpu/common/linux/ioctl_channel.c
+++ b/drivers/gpu/nvgpu/common/linux/ioctl_channel.c
@@ -476,8 +476,8 @@ static int gk20a_channel_wait(struct channel_gk20a *ch,
476 476
477 /* user should set status pending before 477 /* user should set status pending before
478 * calling this ioctl */ 478 * calling this ioctl */
479 remain = wait_event_interruptible_timeout( 479 remain = NVGPU_COND_WAIT_INTERRUPTIBLE(
480 ch->notifier_wq, 480 &ch->notifier_wq,
481 notif->status == 0 || ch->has_timedout, 481 notif->status == 0 || ch->has_timedout,
482 timeout); 482 timeout);
483 483