drm/i915/gt: Extract busy-stats for ring-scheduler
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 15 Jan 2021 14:23:28 +0000 (14:23 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 15 Jan 2021 21:30:23 +0000 (21:30 +0000)
commit4fb05a392a5b9c8af2d8a03f69af2589d4bfc9c8
tree4fc16225eff246a447297c66ce8cd2cd940e6355
parent2c421896adb099e3a905063581f8720f6ce59638
drm/i915/gt: Extract busy-stats for ring-scheduler

Lift the busy-stats context-in/out implementation out of intel_lrc, so
that we can reuse it for other scheduler implementations.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Andi Shyti <andi.shyti@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210115142331.24458-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_engine_stats.h [new file with mode: 0644]
drivers/gpu/drm/i915/gt/intel_execlists_submission.c