drm/i915: Add i915_sched_engine_is_empty function
authorMatthew Brost <matthew.brost@intel.com>
Fri, 18 Jun 2021 01:06:32 +0000 (18:06 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Fri, 18 Jun 2021 22:12:03 +0000 (15:12 -0700)
commit074bb195bce1c86b66e5cd809d6663039d3abf42
tree2f651e40d5afefe2bd7d87a3494fc43d4bc682b3
parent3e28d37146db5dd49c469bc62a93ca791067d391
drm/i915: Add i915_sched_engine_is_empty function

Add wrapper function around RB tree to determine if i915_sched_engine is
empty.

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210618010638.98941-3-matthew.brost@intel.com
drivers/gpu/drm/i915/gt/intel_engine_cs.c
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
drivers/gpu/drm/i915/i915_scheduler.h