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:
Debarshi Dutta
2017-10-10 10:45:54 +05:30
committed by mobile promotions
parent 30b9cbe35a
commit 61b263d832
14 changed files with 47 additions and 46 deletions

View File

@@ -77,12 +77,12 @@ struct nvgpu_os_linux {
atomic_t hw_irq_stall_count;
atomic_t hw_irq_nonstall_count;
wait_queue_head_t sw_irq_stall_last_handled_wq;
struct nvgpu_cond sw_irq_stall_last_handled_wq;
atomic_t sw_irq_stall_last_handled;
atomic_t nonstall_ops;
wait_queue_head_t sw_irq_nonstall_last_handled_wq;
struct nvgpu_cond sw_irq_nonstall_last_handled_wq;
atomic_t sw_irq_nonstall_last_handled;
struct work_struct nonstall_fn_work;