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
This commit is contained in:
Terje Bergstrom
2017-04-25 13:54:58 -07:00
committed by mobile promotions
parent 673dd97160
commit 0ebe462c13
7 changed files with 8 additions and 9 deletions

View File

@@ -476,8 +476,8 @@ static int gk20a_channel_wait(struct channel_gk20a *ch,
/* user should set status pending before
* calling this ioctl */
remain = wait_event_interruptible_timeout(
ch->notifier_wq,
remain = NVGPU_COND_WAIT_INTERRUPTIBLE(
&ch->notifier_wq,
notif->status == 0 || ch->has_timedout,
timeout);