]> git.baikalelectronics.ru Git - kernel.git/commit
drm: fb refcounting for dirtyfb_ioctl
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 10 Dec 2012 23:38:18 +0000 (00:38 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 20 Jan 2013 21:17:06 +0000 (22:17 +0100)
commite973522646d8567035cd88ef6e300d10f8a00f60
treed6238772eb276ac0c7d56faf16fb920990773e9f
parent2a55cdd06f12c0f70758f960838b4540d32bbab2
drm: fb refcounting for dirtyfb_ioctl

We only need to ensure that the fb stays around for long enough. While
at it, only grab the modeset locks when we need them (since most
drivers don't implement the dirty callback, this should help jitter
and stalls when using the generic modeset driver).

Reviewed-by: Rob Clark <rob@ti.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_crtc.c