]> 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)
commitf8e97125ead7584e86a82b79107c87a1b5653a64
tree507c434aa676890602f23ae24ee158dbdf0c21a8
parentfc12e69371b515baab9c3a07519fa2835f8aaf6e
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