mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
gpu: nvgpu: replace wait_queue_head_t with nvgpu_cond
Replace existing usages of wait_queue_head_t with struct nvgpu_cond and using the corresponding APIs in order to reduce Linux dependencies in NVGPU. JIRA NVGPU-205 Change-Id: I85850369c3c47d3e1704e4171b1d172361842423 Signed-off-by: Debarshi Dutta <ddutta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1575778 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
30b9cbe35a
commit
61b263d832
@@ -59,7 +59,7 @@ irqreturn_t nvgpu_intr_thread_stall(struct gk20a *g)
|
||||
/* sync handled irq counter before re-enabling interrupts */
|
||||
atomic_set(&l->sw_irq_stall_last_handled, hw_irq_count);
|
||||
|
||||
wake_up_all(&l->sw_irq_stall_last_handled_wq);
|
||||
nvgpu_cond_broadcast(&l->sw_irq_stall_last_handled_wq);
|
||||
|
||||
trace_mc_gk20a_intr_thread_stall_done(g->name);
|
||||
|
||||
@@ -128,7 +128,7 @@ irqreturn_t nvgpu_intr_nonstall(struct gk20a *g)
|
||||
|
||||
g->ops.mc.intr_nonstall_resume(g);
|
||||
|
||||
wake_up_all(&l->sw_irq_nonstall_last_handled_wq);
|
||||
nvgpu_cond_broadcast(&l->sw_irq_nonstall_last_handled_wq);
|
||||
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user