From: Ville Syrjälä Date: Fri, 20 Mar 2015 19:28:08 +0000 (+0200) Subject: drm/i915: Use usleep_range() in wait_for() X-Git-Tag: omap-for-v4.1/fixes-rc1~82^2~20^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9848de082ff400f8b88e6d550bfce551838af69c;p=pandora-kernel.git drm/i915: Use usleep_range() in wait_for() msleep() can sleep for way too long, so switch wait_for() to use usleep_range() instead. Following a totally unscientific method I just picked the range as W-2W. This cuts the i915 init time on my BSW to almost half: - initcall i915_init+0x0/0xa8 [i915] returned 0 after 419977 usecs + initcall i915_init+0x0/0xa8 [i915] returned 0 after 238419 usecs Note that I didn't perform any other benchmarks on this so far. Cc: Jesse Barnes Signed-off-by: Ville Syrjälä Reviewed-by: Jesse Barnes Reviewed-by: Chris Wilson Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed