]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Send pending vblank events before disabling vblank.
authorChristopher James Halse Rogers <christopher.halse.rogers@canonical.com>
Wed, 27 Apr 2011 06:10:57 +0000 (16:10 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 4 May 2011 00:11:55 +0000 (10:11 +1000)
commitd2c93bf19c2c9b5f9e4967e20ec07761461f9587
tree9e7fa6f5d7e58ab2acb688c7a9e4653856cf4e49
parent47f95e18abf5e7a48d502e647217ec95e3b29448
drm: Send pending vblank events before disabling vblank.

This is the least-bad behaviour.  It means that we signal the
vblank event before it actually happens, but since we're disabling
vblanks there's no guarantee that it will *ever* happen otherwise.

This prevents GL applications which use WaitMSC from hanging
indefinitely.

Signed-off-by: Christopher James Halse Rogers <christopher.halse.rogers@canonical.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_irq.c