mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-09 12:21:23 -04:00
drm/sched: Fix comment in drm_sched_run_job_work()
drm_sched_run_job_work() contains a comment which explains that an entity being NULL means that there is no more work to do. It can, however, also mean that there is work, but the scheduler doesn't have enough credits to process the jobs right now. Provide this detail in the comment. Reviewed-by: Matthew Brost <matthew.brost@intel.com> Signed-off-by: Philipp Stanner <phasta@kernel.org> Link: https://patch.msgid.link/20251028134602.94125-3-phasta@kernel.org
This commit is contained in:
@@ -1237,8 +1237,13 @@ static void drm_sched_run_job_work(struct work_struct *w)
|
||||
|
||||
/* Find entity with a ready job */
|
||||
entity = drm_sched_select_entity(sched);
|
||||
if (!entity)
|
||||
return; /* No more work */
|
||||
if (!entity) {
|
||||
/*
|
||||
* Either no more work to do, or the next ready job needs more
|
||||
* credits than the scheduler has currently available.
|
||||
*/
|
||||
return;
|
||||
}
|
||||
|
||||
sched_job = drm_sched_entity_pop_job(entity);
|
||||
if (!sched_job) {
|
||||
|
||||
Reference in New Issue
Block a user