From 6bad8a5c1dcbe11d3f98c92ae395123f2224555e Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Thu, 26 Jul 2012 11:24:30 +0200 Subject: [PATCH] put in 10 usec delay, simple variant --- drivers/gpu/drm/i915/intel_drv.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h index 8435355..0cb87d1 100644 --- a/drivers/gpu/drm/i915/intel_drv.h +++ b/drivers/gpu/drm/i915/intel_drv.h @@ -47,12 +47,12 @@ #define wait_for_atomic_us(COND, US) ({ \ int i, ret__ = -ETIMEDOUT; \ - for (i = 0; i < (US); i++) { \ + for (i = 0; i < ((US)/10); i++) { \ if ((COND)) { \ ret__ = 0; \ break; \ } \ - udelay(1); \ + udelay(10); \ } \ ret__; \ }) -- 1.7.10.4