summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/clk_arb_linux.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/clk_arb_linux.h')
-rw-r--r--drivers/gpu/nvgpu/common/linux/clk_arb_linux.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/clk_arb_linux.h b/drivers/gpu/nvgpu/common/linux/clk_arb_linux.h
index b66876da..0942dd86 100644
--- a/drivers/gpu/nvgpu/common/linux/clk_arb_linux.h
+++ b/drivers/gpu/nvgpu/common/linux/clk_arb_linux.h
@@ -41,11 +41,12 @@
41struct nvgpu_clk_arb { 41struct nvgpu_clk_arb {
42 struct nvgpu_spinlock sessions_lock; 42 struct nvgpu_spinlock sessions_lock;
43 struct nvgpu_spinlock users_lock; 43 struct nvgpu_spinlock users_lock;
44 struct nvgpu_spinlock requests_lock;
44 45
45 struct nvgpu_mutex pstate_lock; 46 struct nvgpu_mutex pstate_lock;
46 struct list_head users; 47 struct list_head users;
47 struct list_head sessions; 48 struct list_head sessions;
48 struct llist_head requests; 49 struct list_head requests;
49 50
50 struct gk20a *g; 51 struct gk20a *g;
51 int status; 52 int status;
@@ -92,7 +93,7 @@ struct nvgpu_clk_dev {
92 struct nvgpu_clk_session *session; 93 struct nvgpu_clk_session *session;
93 union { 94 union {
94 struct list_head link; 95 struct list_head link;
95 struct llist_node node; 96 struct list_head node;
96 }; 97 };
97 struct nvgpu_cond readout_wq; 98 struct nvgpu_cond readout_wq;
98 nvgpu_atomic_t poll_mask; 99 nvgpu_atomic_t poll_mask;
@@ -110,8 +111,9 @@ struct nvgpu_clk_session {
110 struct gk20a *g; 111 struct gk20a *g;
111 struct nvgpu_ref refcount; 112 struct nvgpu_ref refcount;
112 struct list_head link; 113 struct list_head link;
113 struct llist_head targets; 114 struct list_head targets;
114 115
116 struct nvgpu_spinlock session_lock;
115 struct nvgpu_clk_arb_target target_pool[2]; 117 struct nvgpu_clk_arb_target target_pool[2];
116 struct nvgpu_clk_arb_target *target; 118 struct nvgpu_clk_arb_target *target;
117}; 119};