OSDN Git Service

drm/sched: Rename to drm_sched_wakeup_if_can_queue()
authorLuben Tuikov <luben.tuikov@amd.com>
Wed, 17 May 2023 23:35:50 +0000 (19:35 -0400)
committerLuben Tuikov <luben.tuikov@amd.com>
Fri, 19 May 2023 16:04:42 +0000 (12:04 -0400)
commit3655c5900f4d49881ad09e3893e5f5516b06a9f1
treeccdce950fb7412a3bc0634d6f7a32b9f01876740
parente072700869dd96405a9c3752d3741a79bca6e2e2
drm/sched: Rename to drm_sched_wakeup_if_can_queue()

Rename drm_sched_wakeup() to drm_sched_wakeup_if_canqueue() since the former
is misleading, as it wakes up the GPU scheduler _only if_ more jobs can be
queued to the underlying hardware.

This distinction is important to make, since the wake conditional in the GPU
scheduler thread wakes up when other conditions are also true, e.g. when there
are jobs to be cleaned. For instance, a user might want to wake up the
scheduler only because there are more jobs to clean, but whether we can queue
more jobs is irrelevant.

v2: Separate "canqueue" to "can_queue". (Alex D.)

Cc: Christian König <christian.koenig@amd.com>
Cc: Alex Deucher <Alexander.Deucher@amd.com>
Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
Link: https://lore.kernel.org/r/20230517233550.377847-2-luben.tuikov@amd.com
Reviewed-by: Alex Deucher <Alexander.Deucher@amd.com>
drivers/gpu/drm/scheduler/sched_entity.c
drivers/gpu/drm/scheduler/sched_main.c
include/drm/gpu_scheduler.h