mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 13:27:06 +09:00
video: tegra: nvmap: Prevent reverting to sysmem for small allocations
Change-Id: Icfe552ad4a968329a1a2959d5b438062587a83b6 Signed-off-by: Colin Cross <ccross@android.com>
This commit is contained in:
@@ -149,8 +149,10 @@ static int handle_page_alloc(struct nvmap_client *client,
|
||||
|
||||
prot = nvmap_pgprot(h, pgprot_kernel);
|
||||
|
||||
#ifdef CONFIG_NVMAP_ALLOW_SYSMEM
|
||||
if (nr_page == 1)
|
||||
contiguous = true;
|
||||
#endif
|
||||
|
||||
h->pgalloc.area = NULL;
|
||||
if (contiguous) {
|
||||
|
||||
Reference in New Issue
Block a user