diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/os_linux.h')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/os_linux.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/os_linux.h b/drivers/gpu/nvgpu/common/linux/os_linux.h index cf012acc..8f304fe3 100644 --- a/drivers/gpu/nvgpu/common/linux/os_linux.h +++ b/drivers/gpu/nvgpu/common/linux/os_linux.h | |||
@@ -69,6 +69,20 @@ struct nvgpu_os_linux { | |||
69 | struct devfreq *devfreq; | 69 | struct devfreq *devfreq; |
70 | 70 | ||
71 | struct device_dma_parameters dma_parms; | 71 | struct device_dma_parameters dma_parms; |
72 | |||
73 | atomic_t hw_irq_stall_count; | ||
74 | atomic_t hw_irq_nonstall_count; | ||
75 | |||
76 | wait_queue_head_t sw_irq_stall_last_handled_wq; | ||
77 | atomic_t sw_irq_stall_last_handled; | ||
78 | |||
79 | atomic_t nonstall_ops; | ||
80 | |||
81 | wait_queue_head_t sw_irq_nonstall_last_handled_wq; | ||
82 | atomic_t sw_irq_nonstall_last_handled; | ||
83 | |||
84 | struct work_struct nonstall_fn_work; | ||
85 | struct workqueue_struct *nonstall_work_queue; | ||
72 | }; | 86 | }; |
73 | 87 | ||
74 | static inline struct nvgpu_os_linux *nvgpu_os_linux_from_gk20a(struct gk20a *g) | 88 | static inline struct nvgpu_os_linux *nvgpu_os_linux_from_gk20a(struct gk20a *g) |