drm/sched: Add drm_sched_wqueue_* helpers
authorMatthew Brost <matthew.brost@intel.com>
Tue, 31 Oct 2023 03:24:35 +0000 (20:24 -0700)
committerLuben Tuikov <ltuikov89@gmail.com>
Wed, 1 Nov 2023 21:29:20 +0000 (17:29 -0400)
commit35963cf2cd25eeea8bdb4d02853dac1e66fb13a0
treed026f4a60e9d23e4450afbae21b8f2e5ec968d3b
parent0da611a8702101814257a7c03f6caf0574c83b98
drm/sched: Add drm_sched_wqueue_* helpers

Add scheduler wqueue ready, stop, and start helpers to hide the
implementation details of the scheduler from the drivers.

v2:
  - s/sched_wqueue/sched_wqueue (Luben)
  - Remove the extra white line after the return-statement (Luben)
  - update drm_sched_wqueue_ready comment (Luben)

Cc: Luben Tuikov <luben.tuikov@amd.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Luben Tuikov <luben.tuikov@amd.com>
Link: https://lore.kernel.org/r/20231031032439.1558703-2-matthew.brost@intel.com
Signed-off-by: Luben Tuikov <ltuikov89@gmail.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_arcturus.c
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/msm/adreno/adreno_device.c
drivers/gpu/drm/scheduler/sched_main.c
include/drm/gpu_scheduler.h