]> git.baikalelectronics.ru Git - kernel.git/commit
drm: add some comments to drm_wait_vblank and drm_queue_vblank_event
authorIlija Hadzic <ihadzic@research.bell-labs.com>
Mon, 31 Oct 2011 17:11:57 +0000 (13:11 -0400)
committerDave Airlie <airlied@redhat.com>
Fri, 11 Nov 2011 11:16:30 +0000 (11:16 +0000)
commit6cba5346a92d85ce6a45af6e211e83a71bcd5008
tree1422443322e6bd119edab9db60dc6ae2e3d3b29f
parent04c185759522783e9b8c4136664d0af4106dabcb
drm: add some comments to drm_wait_vblank and drm_queue_vblank_event

during the review of the fix for locks problems in drm_wait_vblank,
a couple of false concerns were raised about how the drm_vblank_get
and drm_vblank_put are used in this function; it turned out that the
code is correct and that it cannot be simplified

add a few comments to explain non-obvious flows in the code,
to prevent "false alarms" in the future

v2: incorporate comments received from Daniel Vetter

Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_irq.c