drm/i915/gvt: properly access enabled intel_engine_cs
authorZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 20 Oct 2016 05:30:33 +0000 (13:30 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 20 Oct 2016 09:31:35 +0000 (17:31 +0800)
commit0fac21e7e978f8556d3f9bb1b2fadfc722bfe992
tree520034ed58fa687bbf3588d4f4786b8318e0b7f4
parent3eec872207cc8230bc98cffa8895173e4effacb2
drm/i915/gvt: properly access enabled intel_engine_cs

Switch to use new for_each_engine() helper to properly access
enabled intel_engine_cs as i915 core has changed that to be
dynamic managed. At GVT-g init time would still depend on ring
mask to determine engine list as it's earlier.

Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/execlist.c
drivers/gpu/drm/i915/gvt/handlers.c
drivers/gpu/drm/i915/gvt/sched_policy.c
drivers/gpu/drm/i915/gvt/scheduler.c