[Intel-gfx] [PATCH] drm/i915: use hrtimer in wait for vblank
Murthy, Arun R
arun.r.murthy at intel.com
Mon Mar 24 10:22:09 CET 2014
> diff --git a/drivers/gpu/drm/i915/intel_drv.h
> b/drivers/gpu/drm/i915/intel_drv.h
> index 44067bc..079280a 100644
> --- a/drivers/gpu/drm/i915/intel_drv.h
> +++ b/drivers/gpu/drm/i915/intel_drv.h
> @@ -52,7 +52,7 @@
> break; \
> } \
> if (W && drm_can_sleep()) { \
> - msleep(W); \
> + usleep_range(W * 1000, W * 2 * 1000); \
> } else { \
> cpu_relax(); \
> } \
Ok. But W is still just a random value we picked for being the mininum legal value for msleep(). So just usleep_range(500, 2000) or somesuch will be fine. We can rename W to CAN_SLEEP it that helps.
Ok, will take care of this in my next version of the patch.
Thanks and Regards,
Arun R Murthy
------------------
More information about the Intel-gfx
mailing list