]> git.baikalelectronics.ru Git - kernel.git/commit
media: atomisp: hmm_bo: Drop PFN code path from alloc_user_pages()
authorHans de Goede <hdegoede@redhat.com>
Sun, 21 Aug 2022 18:43:57 +0000 (20:43 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 24 Sep 2022 07:44:52 +0000 (09:44 +0200)
commite818e2ef730ca1234f745ed8724d550944e98aae
treeb97ada4c8c48f72468adabaf0f7bc7a5db27a89e
parente472d5f972811904671155150372ea595bbea793
media: atomisp: hmm_bo: Drop PFN code path from alloc_user_pages()

alloc_user_pages() is only ever called on qbuf for USERPTR buffers which
always hits the get_user_pages_fast() path, so the pin_user_pages() path
can be removed.

Getting the vma then also is no longer necessary since that is only
done to determine which path to use.

And this also removes the only users of the mem_type struct hmm_bo member,
so remove that as well.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/include/hmm/hmm_bo.h
drivers/staging/media/atomisp/pci/hmm/hmm_bo.c