drm: Create drm_send_event helpers
authorDaniel Vetter <[email protected]>
Mon, 11 Jan 2016 21:40:59 +0000 (22:40 +0100)
committerDaniel Vetter <[email protected]>
Mon, 25 Jan 2016 18:34:43 +0000 (19:34 +0100)
commitfb740cf2492cc1e8f2216bc5ad9f5b2c49a32752
treefbd2342a19fe510bd44713b340d88c10215826b3
parent6d3729ac1332e3b63b7a140d29fb60ef77d61af6
drm: Create drm_send_event helpers

Use them in the core vblank code and exynos/vmwgfx drivers.

Note that the difference between wake_up_all and _interruptible in
vmwgfx doesn't matter since the only waiter is the core code in
drm_fops.c. And that is interruptible.

v2: Adjust existing kerneldoc too.

Reviewed-by: Alex Deucher <[email protected]> (v1)
Acked-by: Daniel Stone <[email protected]>
Cc: Alex Deucher <[email protected]>
Cc: Thomas Hellstrom <[email protected]>
Cc: Inki Dae <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Laurent Pinchart <[email protected]>
[danvet: Squash in compile fixup, spotted by 0-day.]
Signed-off-by: Daniel Vetter <[email protected]>
drivers/gpu/drm/drm_fops.c
drivers/gpu/drm/drm_irq.c
drivers/gpu/drm/exynos/exynos_drm_g2d.c
drivers/gpu/drm/exynos/exynos_drm_ipp.c
drivers/gpu/drm/vmwgfx/vmwgfx_fence.c
include/drm/drmP.h