diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-04-25 16:51:27 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-05-16 13:24:57 -0400 |
commit | 80a6291c9c5e373a3a534ba100b616b6789fb568 (patch) | |
tree | 20a5c5c3c1ea0933fa9db6af61a89c2ebd027ae0 /drivers/gpu/nvgpu/vgpu | |
parent | 7bc97ca7d5e0cee265014ce5fd682858c3b63629 (diff) |
gpu: nvgpu: Use nvgpu_cond in semaphore wq
Change semaphore wait queue to use nvgpu_cond instead of Linux wait
queue.
JIRA NVGPU-14
Change-Id: I3be5097ded168300b4480e986218d9f4fd6104b1
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1469852
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
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 9122e48b..5ea6a016 100644 --- a/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c | |||
@@ -710,7 +710,7 @@ static void vgpu_fifo_set_ctx_mmu_error(struct gk20a *g, | |||
710 | ch->has_timedout = true; | 710 | ch->has_timedout = true; |
711 | wmb(); | 711 | wmb(); |
712 | /* unblock pending waits */ | 712 | /* unblock pending waits */ |
713 | wake_up(&ch->semaphore_wq); | 713 | nvgpu_cond_broadcast_interruptible(&ch->semaphore_wq); |
714 | wake_up(&ch->notifier_wq); | 714 | wake_up(&ch->notifier_wq); |
715 | } | 715 | } |
716 | 716 | ||
diff --git a/drivers/gpu/nvgpu/vgpu/gr_vgpu.c b/drivers/gpu/nvgpu/vgpu/gr_vgpu.c index 2a674feb..c7960c1f 100644 --- a/drivers/gpu/nvgpu/vgpu/gr_vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/gr_vgpu.c | |||
@@ -928,7 +928,7 @@ int vgpu_gr_isr(struct gk20a *g, struct tegra_vgpu_gr_intr_info *info) | |||
928 | wake_up(&ch->notifier_wq); | 928 | wake_up(&ch->notifier_wq); |
929 | break; | 929 | break; |
930 | case TEGRA_VGPU_GR_INTR_SEMAPHORE: | 930 | case TEGRA_VGPU_GR_INTR_SEMAPHORE: |
931 | wake_up_interruptible_all(&ch->semaphore_wq); | 931 | nvgpu_cond_broadcast_interruptible(&ch->semaphore_wq); |
932 | break; | 932 | break; |
933 | case TEGRA_VGPU_GR_INTR_SEMAPHORE_TIMEOUT: | 933 | case TEGRA_VGPU_GR_INTR_SEMAPHORE_TIMEOUT: |
934 | gk20a_set_error_notifier(ch, | 934 | gk20a_set_error_notifier(ch, |