]> git.baikalelectronics.ru Git - kernel.git/commit
drm/gma500: Inline psb_gtt_attach_pages() and psb_gtt_detach_pages()
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 15 Oct 2021 08:40:49 +0000 (10:40 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 19 Oct 2021 08:38:54 +0000 (10:38 +0200)
commit1f1ecddaf94345a0c0cc403214db6133bcdb8ba5
treec49b44895bee72e699c85d53140d7b6fe9e3efe6
parentaca0218e6c05b6ab6f7288d64044cafc843ae0fe
drm/gma500: Inline psb_gtt_attach_pages() and psb_gtt_detach_pages()

psb_gtt_attach_pages() are not GTT functions but deal with the GEM
object's SHMEM pages. The only callers of psb_gtt_attach_pages() and
psb_gtt_detach_pages() are the GEM pin helpers. Inline the calls and
cleanup the resulting code.

v2:
* unlock gtt_mutex in pin-error handling (Patrik)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211015084053.13708-7-tzimmermann@suse.de
drivers/gpu/drm/gma500/gem.c