drm/i915: wake up all pageflip waiters
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 20 Dec 2012 20:24:07 +0000 (21:24 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 17 Jan 2013 21:07:51 +0000 (22:07 +0100)
commit2c10d571169abab9181e0c91b259e0c4e392bc5b
tree373565392487223665cc5c73b16a8742e7887a7c
parentb5cc6c0387b2f8d269c1df1e68c97c958dd22fed
drm/i915: wake up all pageflip waiters

Otherwise it seems like we can get stuck with concurrent waiters.
Right now this /shouldn't/ be a problem, since all pending pageflip
waiters are serialized by the one mode_config.mutex, so there's at
most on waiter. But better paranoid than sorry, since this is tricky
code.

v2: WARN_ON(waitqueue_active) before waiting, as suggested by Chris
Wilson.

Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c