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)
commit82c8e025b577a4b9b87fbbc2a1c4dd401e3a2521
tree507c434aa676890602f23ae24ee158dbdf0c21a8
parent608b20506941969ea30d8c08dc9ae02bb87dbf7d
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