drm/i915: Tidy engine mask types in hangcheck
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Fri, 7 Jun 2019 08:25:54 +0000 (09:25 +0100)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Fri, 7 Jun 2019 11:47:38 +0000 (12:47 +0100)
We can use intel_engine_mask_t to align with the rest of the codebase.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190607082557.31670-2-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/gt/intel_hangcheck.c

index 3a4d09b80fa0d86b7b9701d55d3983e231a75b53..174bb0a60309e50ff7d041a215ec6de9868f1df7 100644 (file)
@@ -223,8 +223,8 @@ static void hangcheck_accumulate_sample(struct intel_engine_cs *engine,
 }
 
 static void hangcheck_declare_hang(struct drm_i915_private *i915,
-                                  unsigned int hung,
-                                  unsigned int stuck)
+                                  intel_engine_mask_t hung,
+                                  intel_engine_mask_t stuck)
 {
        struct intel_engine_cs *engine;
        intel_engine_mask_t tmp;
@@ -259,9 +259,9 @@ static void i915_hangcheck_elapsed(struct work_struct *work)
        struct drm_i915_private *dev_priv =
                container_of(work, typeof(*dev_priv),
                             gpu_error.hangcheck_work.work);
+       intel_engine_mask_t hung = 0, stuck = 0, wedged = 0;
        struct intel_engine_cs *engine;
        enum intel_engine_id id;
-       unsigned int hung = 0, stuck = 0, wedged = 0;
        intel_wakeref_t wakeref;
 
        if (!i915_modparams.enable_hangcheck)