]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Skip the waitqueue setup for vblank queries
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 15 Mar 2017 20:40:26 +0000 (20:40 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 16 Mar 2017 08:51:55 +0000 (09:51 +0100)
commit41014e1bb01840af67c8628638bd9fe26f5668c6
tree507c434aa676890602f23ae24ee158dbdf0c21a8
parent3a024fcee6fe65f2b7964a4a4049efd815affa06
drm: Skip the waitqueue setup for vblank queries

Avoid adding to the waitqueue and reprobing the current vblank if the
caller is only querying the current vblank sequence and timestamp, where
we know that the wait would return immediately.

v2: Add CRTC identifier to debug messages

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Michel Dänzer <michel@daenzer.net>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Dave Airlie <airlied@redhat.com>,
Cc: Mario Kleiner <mario.kleiner.de@gmail.com>
Reviewed-by: Michel Dänzer <michel@daenzer.net>
Reviewed-and-tested-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170315204027.20160-2-chris@chris-wilson.co.uk
drivers/gpu/drm/drm_irq.c