diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-04-25 16:54:58 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-06-05 16:53:13 -0400 |
commit | 0ebe462c130108a027f85bcb6736fed2ef74204e (patch) | |
tree | db2a81adb9fbf8d7dd605b6931cbb8fff075ec01 /drivers/gpu/nvgpu/vgpu | |
parent | 673dd971600b26131c0afdb221e13c080da022fd (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/vgpu')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/fifo_vgpu.c | 2 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/gr_vgpu.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c b/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c index 5fbe7227..8d12bb42 100644 --- a/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c | |||
@@ -724,7 +724,7 @@ static void vgpu_fifo_set_ctx_mmu_error(struct gk20a *g, | |||
724 | wmb(); | 724 | wmb(); |
725 | /* unblock pending waits */ | 725 | /* unblock pending waits */ |
726 | nvgpu_cond_broadcast_interruptible(&ch->semaphore_wq); | 726 | nvgpu_cond_broadcast_interruptible(&ch->semaphore_wq); |
727 | wake_up(&ch->notifier_wq); | 727 | nvgpu_cond_broadcast_interruptible(&ch->notifier_wq); |
728 | } | 728 | } |
729 | 729 | ||
730 | int vgpu_fifo_isr(struct gk20a *g, struct tegra_vgpu_fifo_intr_info *info) | 730 | int vgpu_fifo_isr(struct gk20a *g, struct tegra_vgpu_fifo_intr_info *info) |
diff --git a/drivers/gpu/nvgpu/vgpu/gr_vgpu.c b/drivers/gpu/nvgpu/vgpu/gr_vgpu.c index 2198b115..a001b54e 100644 --- a/drivers/gpu/nvgpu/vgpu/gr_vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/gr_vgpu.c | |||
@@ -925,7 +925,7 @@ int vgpu_gr_isr(struct gk20a *g, struct tegra_vgpu_gr_intr_info *info) | |||
925 | 925 | ||
926 | switch (info->type) { | 926 | switch (info->type) { |
927 | case TEGRA_VGPU_GR_INTR_NOTIFY: | 927 | case TEGRA_VGPU_GR_INTR_NOTIFY: |
928 | wake_up(&ch->notifier_wq); | 928 | nvgpu_cond_broadcast_interruptible(&ch->notifier_wq); |
929 | break; | 929 | break; |
930 | case TEGRA_VGPU_GR_INTR_SEMAPHORE: | 930 | case TEGRA_VGPU_GR_INTR_SEMAPHORE: |
931 | nvgpu_cond_broadcast_interruptible(&ch->semaphore_wq); | 931 | nvgpu_cond_broadcast_interruptible(&ch->semaphore_wq); |