mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
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:
committed by
mobile promotions
parent
673dd97160
commit
0ebe462c13
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user