drm/i915: Avoid using msleep under kdb and wait_for()
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 7 Aug 2010 11:16:25 +0000 (12:16 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 8 Sep 2010 09:13:30 +0000 (10:13 +0100)
commit82d7c9e7da9fa11b8ed968c94a19c7732e11c1ad
treefc7ba0aea076628adb0bb78cda0ab8da91cda743
parent481b6af3d1f36d4a19bd36321c1e9f713db49aad
drm/i915: Avoid using msleep under kdb and wait_for()

wait_for() uses msleep() to yield the cpu whilst spinning waiting for a
register to change. kdb asserts that mode changes are atomic and so
prohibits msleep. The alternative would be to use mdelay or to simply
probe the register more often instead of busy waiting.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_drv.h