File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -243,21 +243,23 @@ struct drm_sched_entity {
243
243
/**
244
244
* struct drm_sched_rq - queue of entities to be scheduled.
245
245
*
246
- * @lock: to modify the entities list.
247
246
* @sched: the scheduler to which this rq belongs to.
248
- * @entities: list of the entities to be scheduled .
247
+ * @lock: protects @ entities, @rb_tree_root and @current_entity .
249
248
* @current_entity: the entity which is to be scheduled.
249
+ * @entities: list of the entities to be scheduled.
250
250
* @rb_tree_root: root of time based priority queue of entities for FIFO scheduling
251
251
*
252
252
* Run queue is a set of entities scheduling command submissions for
253
253
* one specific ring. It implements the scheduling policy that selects
254
254
* the next entity to emit commands from.
255
255
*/
256
256
struct drm_sched_rq {
257
- spinlock_t lock ;
258
257
struct drm_gpu_scheduler * sched ;
259
- struct list_head entities ;
258
+
259
+ spinlock_t lock ;
260
+ /* Following members are protected by the @lock: */
260
261
struct drm_sched_entity * current_entity ;
262
+ struct list_head entities ;
261
263
struct rb_root_cached rb_tree_root ;
262
264
};
263
265
You can’t perform that action at this time.
0 commit comments