File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -134,13 +134,17 @@ v3d_job_start_stats(struct v3d_job *job, enum v3d_queue queue)
134
134
struct v3d_stats * local_stats = & file -> stats [queue ];
135
135
u64 now = local_clock ();
136
136
137
+ preempt_disable ();
138
+
137
139
write_seqcount_begin (& local_stats -> lock );
138
140
local_stats -> start_ns = now ;
139
141
write_seqcount_end (& local_stats -> lock );
140
142
141
143
write_seqcount_begin (& global_stats -> lock );
142
144
global_stats -> start_ns = now ;
143
145
write_seqcount_end (& global_stats -> lock );
146
+
147
+ preempt_enable ();
144
148
}
145
149
146
150
static void
@@ -162,8 +166,10 @@ v3d_job_update_stats(struct v3d_job *job, enum v3d_queue queue)
162
166
struct v3d_stats * local_stats = & file -> stats [queue ];
163
167
u64 now = local_clock ();
164
168
169
+ preempt_disable ();
165
170
v3d_stats_update (local_stats , now );
166
171
v3d_stats_update (global_stats , now );
172
+ preempt_enable ();
167
173
}
168
174
169
175
static struct dma_fence * v3d_bin_job_run (struct drm_sched_job * sched_job )
You can’t perform that action at this time.
0 commit comments