There is no need to specify timeout as unsigned long since this parameter
will be consumed by usecs_to_jiffies() which expects unsigned int only.
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170407133212.174608-1-michal.wajdeczko@intel.com
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
i915_reg_t reg,
const u32 mask,
const u32 value,
- const unsigned long timeout_ms);
+ const unsigned int timeout_ms);
static inline bool intel_gvt_active(struct drm_i915_private *dev_priv)
{
i915_reg_t reg,
const u32 mask,
const u32 value,
- const unsigned long timeout_ms)
+ const unsigned int timeout_ms)
{
#define done ((I915_READ_FW(reg) & mask) == value)
int ret = wait_for_us(done, 2);