提交 2a20d6f8 编写于 作者: C Chris Wilson

drm/i915: Rename i915_gem_engine_cleanup() to engine_set_wedged()

It has been some time since i915_gem_engine_cleanup was only called from
the module unload path, and now it is only called when the GPU is
wedged. Mika complained that the name is confusing, especially in light
of the existence of i915_gem_cleanup_engines().
Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: NTvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170110172246.27297-5-chris@chris-wilson.co.uk
上级 3cd9442f
...@@ -2735,7 +2735,7 @@ static void nop_submit_request(struct drm_i915_gem_request *request) ...@@ -2735,7 +2735,7 @@ static void nop_submit_request(struct drm_i915_gem_request *request)
intel_engine_init_global_seqno(request->engine, request->global_seqno); intel_engine_init_global_seqno(request->engine, request->global_seqno);
} }
static void i915_gem_cleanup_engine(struct intel_engine_cs *engine) static void engine_set_wedged(struct intel_engine_cs *engine)
{ {
struct drm_i915_gem_request *request; struct drm_i915_gem_request *request;
unsigned long flags; unsigned long flags;
...@@ -2789,7 +2789,7 @@ static int __i915_gem_set_wedged_BKL(void *data) ...@@ -2789,7 +2789,7 @@ static int __i915_gem_set_wedged_BKL(void *data)
enum intel_engine_id id; enum intel_engine_id id;
for_each_engine(engine, i915, id) for_each_engine(engine, i915, id)
i915_gem_cleanup_engine(engine); engine_set_wedged(engine);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册