OSDN Git Service

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)
commit0b80214b64e38f33d359c0e121773357060b992f
treec49b44895bee72e699c85d53140d7b6fe9e3efe6
parent2671075b322746ec68c49396c5c17ad8ad236dce
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