Searched refs:dsq (Results 1 – 5 of 5) sorted by relevance
| /linux/kernel/sched/ext/ |
| H A D | ext.c | 114 static bool dsq_is_rq_owned(struct scx_dispatch_q *dsq) in dsq_is_rq_owned() argument 116 switch (dsq->id) { in dsq_is_rq_owned() 517 static struct task_struct *nldsq_next_task(struct scx_dispatch_q *dsq, in nldsq_next_task() argument 523 lockdep_assert_held(&dsq->lock); in nldsq_next_task() 528 list_node = &dsq->list; in nldsq_next_task() 537 if (list_node == &dsq->list) in nldsq_next_task() 547 #define nldsq_for_each_task(p, dsq) \ argument 548 for ((p) = nldsq_next_task((dsq), NULL, false); (p); \ 549 (p) = nldsq_next_task((dsq), (p), false)) 565 struct scx_dispatch_q *dsq) in nldsq_cursor_next_task() argument [all …]
|
| H A D | sub.c | 309 if (list_empty(&rq->scx.rescue.dsq.list)) in scx_rescue_end() 354 bool in_session = rq->scx.rescue.curr || !list_empty(&rq->scx.rescue.dsq.list); in scx_rescue_accrue() 385 u32 depth = rq->scx.rescue.dsq.nr ?: 1; in scx_rescue_next_slice() 452 if (!rq->scx.rescue.curr && list_empty(&rq->scx.rescue.dsq.list) && in scx_rescue_try_admit() 481 p = list_first_entry_or_null(&rq->scx.rescue.dsq.list, struct task_struct, in scx_rescue_check_overload() 540 if (!p && list_empty(&rq->scx.rescue.dsq.list)) in scx_rescue_timerfn() 554 p = list_first_entry(&rq->scx.rescue.dsq.list, struct task_struct, in scx_rescue_timerfn() 556 scx_task_unlink_from_dsq(p, &rq->scx.rescue.dsq); in scx_rescue_timerfn() 562 } else if (p->scx.dsq && rq->scx.rescue.budget > 2 * scx_rescue_quantum_ns) { in scx_rescue_timerfn() 593 list_for_each_entry_safe(p, n, &rq->scx.rescue.dsq.list, scx.dsq_list.node) { in scx_rescue_flush() [all …]
|
| H A D | internal.h | 2109 void scx_task_unlink_from_dsq(struct task_struct *p, struct scx_dispatch_q *dsq); 2116 struct scx_dispatch_q *dsq, u64 enq_flags); 2120 s32 scx_init_dsq(struct scx_dispatch_q *dsq, u64 dsq_id, struct scx_sched *sch); 2124 void schedule_dsq_reenq(struct scx_sched *sch, struct scx_dispatch_q *dsq,
|
| /linux/include/linux/sched/ |
| H A D | ext.h | 73 struct scx_dispatch_q *dsq; member 193 struct scx_dispatch_q *dsq; member
|
| /linux/kernel/sched/ |
| H A D | sched.h | 801 struct scx_dispatch_q dsq; /* stranded tasks awaiting rescue */ member
|