summaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2019-09-06 14:20:54 +0200
committerThomas Zimmermann <tzimmermann@suse.de>2019-09-09 12:52:17 +0200
commitbc25bb9192c0438d84bf69ab72de02d3a4c3f827 (patch)
tree9ee4294fefb8878f1f66e5cfbcc40b1b639a6165 /include/drm
parent37a48adfba6cf6e87df9ba8b75ab85d514ed86d8 (diff)
downloadlinux-bc25bb9192c0438d84bf69ab72de02d3a4c3f827.tar.bz2
drm/vram: Acquire lock only once per call to vmap()/vunmap()
The implementation of vmap() is a combined pin() and kmap(). As both functions share the same lock, we can make vmap() slightly faster by acquiring the lock only once for both operations. Same for the inverse, vunmap(). Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Gerd Hoffmann <kraxel@redhat.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reported-and-tested-by: Davidlohr Bueso <dbueso@suse.de> Link: https://patchwork.freedesktop.org/patch/msgid/20190906122056.32018-3-tzimmermann@suse.de
Diffstat (limited to 'include/drm')
0 files changed, 0 insertions, 0 deletions